diff options
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); |