diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-07-04 11:47:06 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-07-04 11:47:06 +0000 |
commit | 252433cedd4ef99478e0cd147c6ef0ed9cc7db1e (patch) | |
tree | 2afb167d63fe73b1aa5164209079f673a8d41be1 | |
parent | 0fd1bddc838c51119d8ac1210cbd077975b6538b (diff) |
- m_whois.c: removed legacy code
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2353 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r-- | modules/m_whois.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/modules/m_whois.c b/modules/m_whois.c index 764e458..ec4b555 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -169,25 +169,18 @@ whois_person(struct Client *source_p, struct Client *target_p) * side effects - Does whois */ static void -do_whois(struct Client *source_p, int parc, char *parv[]) +do_whois(struct Client *source_p, const char *name) { struct Client *target_p = NULL; - char *nick = parv[1]; - char *p = NULL; - if ((p = strchr(nick, ',')) != NULL) - *p = '\0'; - if (*nick == '\0') - return; - - if ((target_p = hash_find_client(nick)) && IsClient(target_p)) + if ((target_p = hash_find_client(name)) && IsClient(target_p)) whois_person(source_p, target_p); - else if (!IsDigit(*nick)) + else if (!IsDigit(*name)) sendto_one(source_p, form_str(ERR_NOSUCHNICK), - me.name, source_p->name, nick); + me.name, source_p->name, name); sendto_one(source_p, form_str(RPL_ENDOFWHOIS), - me.name, source_p->name, nick); + me.name, source_p->name, name); } /* @@ -235,7 +228,7 @@ m_whois(struct Client *client_p, struct Client *source_p, parv[1] = parv[2]; } - do_whois(source_p, parc, parv); + do_whois(source_p, parv[1]); } /* @@ -263,7 +256,7 @@ mo_whois(struct Client *client_p, struct Client *source_p, parv[1] = parv[2]; } - do_whois(source_p, parc, parv); + do_whois(source_p, parv[1]); } static struct Message whois_msgtab = { |