From 918de57ce19e6dad6c738d46553c467ac541e516 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 8 Jul 2006 18:26:01 +0000 Subject: Forgot return;s git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4182 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mode.cpp') diff --git a/src/mode.cpp b/src/mode.cpp index 808b01388..cecb7b703 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -236,11 +236,13 @@ void ModeParser::DisplayCurrentModes(userrec *user, userrec* targetuser, chanrec /* Display channel's current mode string */ WriteServ(user->fd,"324 %s %s +%s",user->nick, targetchannel->name, chanmodes(targetchannel, targetchannel->HasUser(user))); WriteServ(user->fd,"329 %s %s %d", user->nick, targetchannel->name, targetchannel->created); + return; } else if (targetuser) { /* Display user's current mode string */ WriteServ(user->fd,"221 %s :+%s",targetuser->nick,targetuser->FormatModes()); + return; } /* No such nick/channel */ WriteServ(user->fd,"401 %s %s :No such nick/channel",user->nick, text); -- cgit v1.2.3