diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-06 16:15:35 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-06 16:15:35 +0000 |
commit | 02ccf82812a189c46d0495580b7d96ada34851b5 (patch) | |
tree | 90442e19db8dfa608f45b168184035ecdc8ccf80 /src/channels.cpp | |
parent | 7e9d08ec1cb2e01eaca8793eda1d06e05a38fa24 (diff) |
Fix desync with halfop and voice when opped (this happens because we were ORing the wrong value in chanrec::ForceChan)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6232 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 36436cdc5..4aea42ac8 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -385,13 +385,13 @@ chanrec* chanrec::ForceChan(InspIRCd* Instance, chanrec* Ptr, userrec* user, con * must stick to ::find(). */ case '@': - user->chans[Ptr] |= STATUS_OP; + user->chans[Ptr] |= UCMODE_OP; break; case '%': - user->chans[Ptr] |= STATUS_HOP; + user->chans[Ptr] |= UCMODE_HOP; break; case '+': - user->chans[Ptr] |= STATUS_VOICE; + user->chans[Ptr] |= UCMODE_VOICE; break; } } @@ -976,6 +976,7 @@ int chanrec::GetStatus(userrec *user) void chanrec::SetPrefix(userrec* user, char prefix, unsigned int prefix_value, bool adding) { + ServerInstance->Log(DEBUG,"Setting prefix: %c on user %s in %s to %d", prefix, user->nick, this->name, adding); prefixlist::iterator n = prefixes.find(user); prefixtype pfx = std::make_pair(prefix,prefix_value); if (adding) |