diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-08 18:26:01 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-08 18:26:01 +0000 |
commit | 918de57ce19e6dad6c738d46553c467ac541e516 (patch) | |
tree | 9474c7fad9c7b6c154917b0e0065d8a71af5f900 /src/mode.cpp | |
parent | 5bbea4813d98b981d9277f80cbad5f2349da36a9 (diff) |
Forgot return;s
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4182 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |