From 9a7b1fb30d71936f057c0c0ee0fa5e711042311e Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 18 Jan 2006 23:53:12 +0000 Subject: Test-fix for crazy's bug (/who 0 * as oper while on no channels) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2821 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_who.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd_who.cpp') diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index 607fba68e..843507b57 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -158,7 +158,7 @@ void cmd_who::Handle (char **parameters, int pcnt, userrec *user) strlcat(tmp, "H" ,9); } if (strchr(u->modes,'o')) { strlcat(tmp, "*" ,9); } - WriteServ(user->fd,"352 %s %s %s %s %s %s %s :0 %s",user->nick, u->chans.size() ? u->chans[0].channel->name + WriteServ(user->fd,"352 %s %s %s %s %s %s %s :0 %s",user->nick, u->chans.size() && u->chans[0].channel ? u->chans[0].channel->name : "*", u->ident, u->dhost, u->server, u->nick, tmp, u->fullname); } WriteServ(user->fd,"315 %s %s :End of /WHO list.",user->nick, parameters[0]); @@ -179,7 +179,7 @@ void cmd_who::Handle (char **parameters, int pcnt, userrec *user) } else { strlcat(tmp, "H" ,9); } - WriteServ(user->fd,"352 %s %s %s %s %s %s %s* :0 %s", user->nick, oper->chans.size() ? oper->chans[0].channel->name + WriteServ(user->fd,"352 %s %s %s %s %s %s %s* :0 %s", user->nick, oper->chans.size() && oper->chans[0].channel ? oper->chans[0].channel->name : "*", oper->ident, oper->dhost, oper->server, oper->nick, tmp, oper->fullname); } WriteServ(user->fd,"315 %s %s :End of /WHO list.",user->nick, parameters[0]); -- cgit v1.2.3