summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-06 16:15:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-06 16:15:35 +0000
commit02ccf82812a189c46d0495580b7d96ada34851b5 (patch)
tree90442e19db8dfa608f45b168184035ecdc8ccf80 /src/mode.cpp
parent7e9d08ec1cb2e01eaca8793eda1d06e05a38fa24 (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/mode.cpp')
-rw-r--r--src/mode.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 62dd61f4c..11fecf06a 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -185,6 +185,7 @@ const char* ModeParser::Grant(userrec *d,chanrec *chan,int MASK)
{
if (n->second & MASK)
{
+ ServerInstance->Log(DEBUG,"User already has privilage %d (privset: %d)", MASK, n->second);
return "";
}
n->second = n->second | MASK;
@@ -203,6 +204,10 @@ const char* ModeParser::Grant(userrec *d,chanrec *chan,int MASK)
ServerInstance->Log(DEBUG,"grant: %s %s",n->first->name,d->nick);
return d->nick;
}
+ else
+ {
+ ServerInstance->Log(DEBUG,"Channel %s not in users joined list", chan->name);
+ }
return "";
}