summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-11-01 17:20:48 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-11-01 17:20:48 +0000
commit1a34e54e2946fb8abd9fcb2bd92b8f44e708b6c8 (patch)
tree972343b19de3aea9ccd1e5cb99b3d38fb25dfbcb /src
parent425d92d263a61a9f3fb0411a14fc8ec54684e4c6 (diff)
Send remote de-oper to REMOTEOPER snomask.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10776 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modes/umode_o.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modes/umode_o.cpp b/src/modes/umode_o.cpp
index 1eaa30c90..a992481b7 100644
--- a/src/modes/umode_o.cpp
+++ b/src/modes/umode_o.cpp
@@ -39,7 +39,10 @@ ModeAction ModeUserOperator::OnModeChange(User* source, User* dest, Channel*, st
* verifying as an oper and getting an opertype assigned
* to your User!
*/
- ServerInstance->SNO->WriteToSnoMask('o', "User %s de-opered (by %s)", dest->nick.c_str(), source->nick.c_str());
+ if (IS_LOCAL(dest))
+ ServerInstance->SNO->WriteToSnoMask('o', "User %s de-opered (by %s)", dest->nick.c_str(), source->nick.c_str());
+ else
+ ServerInstance->SNO->WriteToSnoMask('O', "User %s de-opered (by %s)", dest->nick.c_str(), source->nick.c_str());
dest->UnOper();
return MODEACTION_ALLOW;