summaryrefslogtreecommitdiff
path: root/src/cmd_who.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-18 23:53:12 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-18 23:53:12 +0000
commit9a7b1fb30d71936f057c0c0ee0fa5e711042311e (patch)
treef0f168079bbc7657625c054da543e8b1ef7742c8 /src/cmd_who.cpp
parentecf3d236c28317db544171d18b7b7b8aa1827846 (diff)
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
Diffstat (limited to 'src/cmd_who.cpp')
-rw-r--r--src/cmd_who.cpp4
1 files changed, 2 insertions, 2 deletions
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]);