summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-04-14 20:16:55 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-04-14 20:16:55 +0000
commit82750c14c81b5a63373107267cda4fa6de1c2ff9 (patch)
treeb7ec751774fbec5c11c1a67791f68f65ae6b94ad /modules
parent9b42989e38a7602b206dacb0cfa88d21e365c7a1 (diff)
- Backported -r3296 [m_capab.c:mr_capab(): capability tokens must be all in parv[1] now]
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3309 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r--modules/m_capab.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/m_capab.c b/modules/m_capab.c
index b3ea3f0..15fe6ea 100644
--- a/modules/m_capab.c
+++ b/modules/m_capab.c
@@ -43,7 +43,6 @@ static int
mr_capab(struct Client *client_p, struct Client *source_p,
int parc, char *parv[])
{
- int i = 0;
unsigned int cap = 0;
char *p = NULL;
char *s = NULL;
@@ -56,11 +55,10 @@ mr_capab(struct Client *client_p, struct Client *source_p,
SetCapable(client_p, CAP_CAP);
- for (i = 1; i < parc; ++i)
- for (s = strtoken(&p, parv[i], " "); s;
- s = strtoken(&p, NULL, " "))
- if ((cap = find_capability(s)))
- SetCapable(client_p, cap);
+ for (s = strtoken(&p, parv[1], " "); s;
+ s = strtoken(&p, NULL, " "))
+ if ((cap = find_capability(s)))
+ SetCapable(client_p, cap);
return 0;
}