[svn] Repair operspy who !#channel, broken by me in r3283.

This commit is contained in:
jilles 2007-04-02 15:03:08 -07:00
parent 9113281379
commit f71e18eee5
3 changed files with 15 additions and 5 deletions

View file

@ -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) jilles 2007/04/01 22:10:05 UTC (20070401-3342)
Log: Log:
Change copyright years in version.c.SH as in release-2.1 r3339. Change copyright years in version.c.SH as in release-2.1 r3339.

View file

@ -1 +1 @@
#define SERNO "20070401-3342" #define SERNO "20070401-3344"

View file

@ -21,7 +21,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA * 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 "stdinc.h"
#include "tools.h" #include "tools.h"
@ -51,7 +51,7 @@ struct Message who_msgtab = {
}; };
mapi_clist_av1 who_clist[] = { &who_msgtab, NULL }; 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, static void do_who_on_channel(struct Client *source_p, struct Channel *chptr,
int server_oper, int member); 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)) if(IsChannelName(mask))
{ {
/* List all users on a given channel */ /* List all users on a given channel */
chptr = find_channel(parv[1]); chptr = find_channel(parv[1] + operspy);
if(chptr != NULL) if(chptr != NULL)
{ {
if(operspy) 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); do_who_on_channel(source_p, chptr, server_oper, NO);
} }
sendto_one(source_p, form_str(RPL_ENDOFWHO), 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; return 0;
} }