The /mv command shouldn't send +v for already-voiced users.

The logic in the massop function to exclude already-voiced users from
massvoice was faulty - it was equivalent to just !nick_isop().


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@500 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2014-09-23 13:59:03 +00:00
parent a3170cf578
commit 6dc2335df9
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
[Changes 1.2c01] [Changes 1.2c01]
* /MV (massvoice) shouldn't send +v for already-voiced users. (caf)
* Fix lag check on recent 32 bit OpenBSD / NetBSD (reported by DJ). (caf) * Fix lag check on recent 32 bit OpenBSD / NetBSD (reported by DJ). (caf)
* Fix key bindings that terminate with ^. (caf) * Fix key bindings that terminate with ^. (caf)

View File

@@ -615,7 +615,7 @@ BUILT_IN_COMMAND(massop)
sprintf(buffer, "%s!%s", nicks->nick, nicks->host); sprintf(buffer, "%s!%s", nicks->nick, nicks->host);
if ((my_stricmp(nicks->nick, get_server_nickname(from_server)) && wild_match(spec, buffer))) if ((my_stricmp(nicks->nick, get_server_nickname(from_server)) && wild_match(spec, buffer)))
{ {
if ((massvoice && !nick_isvoice(nicks) && !nick_isop(nicks)) || !nick_isop(nicks)) if (!(nick_isop(nicks) || (massvoice && nick_isvoice(nicks))))
{ {
add_mode(chan, massvoice?"v":"o", 1, nicks->nick, NULL, maxmodes); add_mode(chan, massvoice?"v":"o", 1, nicks->nick, NULL, maxmodes);
count++; count++;