summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}