From 8456cf5ccd44911f4e56538fe0880dd7fc7cd96d Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 2 Oct 2009 03:15:46 +0000 Subject: Fix valgrind issues and crashes on exit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11794 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/umode_o.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modes') diff --git a/src/modes/umode_o.cpp b/src/modes/umode_o.cpp index 1d6992144..3c0eb37a1 100644 --- a/src/modes/umode_o.cpp +++ b/src/modes/umode_o.cpp @@ -40,7 +40,7 @@ ModeAction ModeUserOperator::OnModeChange(User* source, User* dest, Channel*, st */ 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()); + source->nick.empty() ? source->server.c_str() : source->nick.c_str()); dest->UnOper(); return MODEACTION_ALLOW; -- cgit v1.2.3