From 02ccf82812a189c46d0495580b7d96ada34851b5 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 6 Jan 2007 16:15:35 +0000 Subject: 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 --- src/mode.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mode.cpp') 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 ""; } -- cgit v1.3.1-10-gc9f91