X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/212380e3f42f585dc1ea927402252eb943f91f7b..8a1e143f6fb3509ad390554e2c49af723794cd96:/modules/m_who.c diff --git a/modules/m_who.c b/modules/m_who.c index b62d301..2bec096 100644 --- a/modules/m_who.c +++ b/modules/m_who.c @@ -21,7 +21,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: m_who.c 1853 2006-08-24 18:30:52Z jilles $ + * $Id: m_who.c 3283 2007-03-28 13:11:30Z jilles $ */ #include "stdinc.h" #include "tools.h" @@ -51,7 +51,7 @@ struct Message who_msgtab = { }; mapi_clist_av1 who_clist[] = { &who_msgtab, NULL }; -DECLARE_MODULE_AV1(who, NULL, NULL, who_clist, NULL, NULL, "$Revision: 1853 $"); +DECLARE_MODULE_AV1(who, NULL, NULL, who_clist, NULL, NULL, "$Revision: 3283 $"); static void do_who_on_channel(struct Client *source_p, struct Channel *chptr, int server_oper, int member); @@ -119,7 +119,7 @@ m_who(struct Client *client_p, struct Client *source_p, int parc, const char *pa if(IsChannelName(mask)) { /* List all users on a given channel */ - chptr = find_channel(mask); + chptr = find_channel(parv[1]); if(chptr != NULL) { if(operspy) @@ -131,7 +131,7 @@ m_who(struct Client *client_p, struct Client *source_p, int parc, const char *pa do_who_on_channel(source_p, chptr, server_oper, NO); } sendto_one(source_p, form_str(RPL_ENDOFWHO), - me.name, source_p->name, mask); + me.name, source_p->name, parv[1]); return 0; }