summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-31 17:29:07 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-31 17:29:07 +0000
commit28de37791e17a1f1f3fd431969f5b6fd393eb73f (patch)
tree40e000c7c93b9d979beb7493acf23c7bcdbb53ff
parent97ab3c404ccd201681f465aa2c3e9ff6586acbd8 (diff)
Fix compile error
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11018 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modes/umode_o.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modes/umode_o.cpp b/src/modes/umode_o.cpp
index baeaad5bb..71bf10077 100644
--- a/src/modes/umode_o.cpp
+++ b/src/modes/umode_o.cpp
@@ -37,10 +37,9 @@ ModeAction ModeUserOperator::OnModeChange(User* source, User* dest, Channel*, st
* verifying as an oper and getting an opertype assigned
* to your User!
*/
- if (IS_LOCAL(dest))
- ServerInstance->SNO->WriteToSnoMask('o', "User %s de-opered (by %s)", dest->nick.c_str(), source.empty() ? source->server : source->nick.c_str());
- else
- ServerInstance->SNO->WriteToSnoMask('O', "User %s de-opered (by %s)", dest->nick.c_str(), source.empty() ? source->server : source->nick.c_str());
+ char snomask = IS_LOCAL(dest) ? 'o' : 'O';
+ ServerInstance->SNO->WriteToSnoMask(snomask, "User %s de-opered (by %s)", dest->nick.c_str(),
+ source->nick.empty() ? source->server : source->nick.c_str());
dest->UnOper();
return MODEACTION_ALLOW;