From 28de37791e17a1f1f3fd431969f5b6fd393eb73f Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 31 Jan 2009 17:29:07 +0000 Subject: Fix compile error git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11018 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/umode_o.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/modes') 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; -- cgit v1.2.3