diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-27 13:36:32 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-27 13:36:32 +0000 |
commit | f6fa8d23a362cddf4e3dda6e085f48df47a9fe4b (patch) | |
tree | ed93902a0e588751b400f02e0394bf41407da5c8 | |
parent | 7a5c90f584bec36a74ca4ca3b94170afaf836325 (diff) |
- 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
-rw-r--r-- | modules/core/m_kick.c | 7 | ||||
-rw-r--r-- | modules/m_names.c | 3 | ||||
-rw-r--r-- | modules/m_whowas.c | 2 |
3 files changed, 0 insertions, 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') |