Allow case insensitive TRUST command.

This commit is contained in:
nohar 2007-02-19 22:49:54 +00:00
parent 0d79c41d4c
commit a60bcec69f
1 changed files with 2 additions and 2 deletions

View File

@ -1027,8 +1027,8 @@ static int irc_dispatch_trust_client(struct link_client *ic, struct line *line)
if (line->elemc < 2)
return ERR_PROTOCOL;
if (strcmp(line->elemv[0], "BIP") == 0 &&
strcmp(line->elemv[1], "TRUST") == 0)
if (strcasecmp(line->elemv[0], "BIP") == 0 &&
strcasecmp(line->elemv[1], "TRUST") == 0)
r = adm_trust(ic, line);
return r;