]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_who.c
When checking if a nick resv or xline already exists, match exact not wild.
[irc/rqf/shadowircd.git] / modules / m_who.c
index e83ff4ce166f46b509feb7eeccb1b24508a56ace..8ef2624fb44267ae3694914dea6ee2103b31b16e 100644 (file)
@@ -244,7 +244,7 @@ who_common_channel(struct Client *source_p, struct Channel *chptr,
                {
                        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))
                        {
@@ -313,7 +313,7 @@ who_global(struct Client *source_p, const char *mask, int server_oper, int opers
                {
                        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))
                        {
@@ -385,7 +385,7 @@ do_who(struct Client *source_p, struct Client *target_p, const char *chname, con
        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);