From f71e18eee589ba32d142c73fdb206c8541c85568 Mon Sep 17 00:00:00 2001 From: jilles Date: Mon, 2 Apr 2007 15:03:08 -0700 Subject: [PATCH] [svn] Repair operspy who !#channel, broken by me in r3283. --- ChangeLog | 10 ++++++++++ include/serno.h | 2 +- modules/m_who.c | 8 ++++---- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index bf92b9c1..7a201612 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +jilles 2007/04/01 22:20:00 UTC (20070401-3344) + Log: + Update bug report and IRC channel information. + + + Changes: Modified: + +2 -1 trunk/BUGS (File Modified) + +2 -1 trunk/NEWS (File Modified) + + jilles 2007/04/01 22:10:05 UTC (20070401-3342) Log: Change copyright years in version.c.SH as in release-2.1 r3339. diff --git a/include/serno.h b/include/serno.h index 4e4d0a3a..19f6cbd5 100644 --- a/include/serno.h +++ b/include/serno.h @@ -1 +1 @@ -#define SERNO "20070401-3342" +#define SERNO "20070401-3344" diff --git a/modules/m_who.c b/modules/m_who.c index 2bec0964..e83ff4ce 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 3283 2007-03-28 13:11:30Z jilles $ + * $Id: m_who.c 3350 2007-04-02 22:03:08Z 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: 3283 $"); +DECLARE_MODULE_AV1(who, NULL, NULL, who_clist, NULL, NULL, "$Revision: 3350 $"); 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(parv[1]); + chptr = find_channel(parv[1] + operspy); 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, parv[1]); + me.name, source_p->name, parv[1] + operspy); return 0; }