* 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 3350 2007-04-02 22:03:08Z jilles $
*/
#include "stdinc.h"
#include "tools.h"
};
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: 3350 $");
static void do_who_on_channel(struct Client *source_p, struct Channel *chptr,
int server_oper, int member);
if(IsChannelName(mask))
{
/* List all users on a given channel */
- chptr = find_channel(mask);
+ chptr = find_channel(parv[1] + operspy);
if(chptr != NULL)
{
if(operspy)
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] + operspy);
return 0;
}
{
if((mask == NULL) ||
match(mask, target_p->name) || match(mask, target_p->username) ||
- match(mask, target_p->host) || match(mask, target_p->user->server) ||
+ match(mask, target_p->host) || match(mask, target_p->servptr->name) ||
(IsOper(source_p) && match(mask, target_p->orighost)) ||
match(mask, target_p->info))
{
{
if(!mask ||
match(mask, target_p->name) || match(mask, target_p->username) ||
- match(mask, target_p->host) || match(mask, target_p->user->server) ||
+ match(mask, target_p->host) || match(mask, target_p->servptr->name) ||
(IsOper(source_p) && match(mask, target_p->orighost)) ||
match(mask, target_p->info))
{
sendto_one(source_p, form_str(RPL_WHOREPLY), me.name, source_p->name,
(chname) ? (chname) : "*",
target_p->username,
- target_p->host, target_p->user->server, target_p->name,
+ target_p->host, target_p->servptr->name, target_p->name,
status,
ConfigServerHide.flatten_links ? 0 : target_p->hopcount,
target_p->info);