From f6fa8d23a362cddf4e3dda6e085f48df47a9fe4b Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 27 Apr 2013 13:36:32 +0000 Subject: - m_whowas.c,m_names.c,m_kick.c: remove pointless code. There's no real reason why we should skip preceding commas in nick-/channelnames git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@1887 82007160-df01-0410-b94d-b575c5fd34c7 --- modules/core/m_kick.c | 7 ------- modules/m_names.c | 3 --- modules/m_whowas.c | 2 -- 3 files changed, 12 deletions(-) diff --git a/modules/core/m_kick.c b/modules/core/m_kick.c index f800136..24a2888 100644 --- a/modules/core/m_kick.c +++ b/modules/core/m_kick.c @@ -85,9 +85,6 @@ m_kick(struct Client *client_p, struct Client *source_p, comment[KICKLEN] = '\0'; name = parv[1]; - while (*name == ',') - name++; - if ((p = strchr(name,',')) != NULL) *p = '\0'; if (*name == '\0') @@ -155,10 +152,6 @@ m_kick(struct Client *client_p, struct Client *source_p, } user = parv[2]; - - while (*user == ',') - user++; - if ((p = strchr(user, ',')) != NULL) *p = '\0'; diff --git a/modules/m_names.c b/modules/m_names.c index f1b9409..07cf820 100644 --- a/modules/m_names.c +++ b/modules/m_names.c @@ -143,9 +143,6 @@ m_names(struct Client *client_p, struct Client *source_p, if (!EmptyString(para)) { - while (*para == ',') - ++para; - if ((s = strchr(para, ',')) != NULL) *s = '\0'; diff --git a/modules/m_whowas.c b/modules/m_whowas.c index 0a0d542..5b312c3 100644 --- a/modules/m_whowas.c +++ b/modules/m_whowas.c @@ -62,8 +62,6 @@ whowas_do(struct Client *client_p, struct Client *source_p, return; nick = parv[1]; - while (*nick == ',') - nick++; if ((p = strchr(nick,',')) != NULL) *p = '\0'; if (*nick == '\0') -- cgit