m_webirc: const-correctness
This commit is contained in:
parent
d6c813780f
commit
a6b97b7d88
1 changed files with 3 additions and 3 deletions
|
@ -129,10 +129,10 @@ mr_webirc(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
|
||||||
|
|
||||||
if (parc >= 6)
|
if (parc >= 6)
|
||||||
{
|
{
|
||||||
char *s;
|
const char *s;
|
||||||
for (s = strtok(parv[5], " "); s != NULL; s = strtok(NULL, " "))
|
for (s = parv[5]; s != NULL; (s = strchr(s, ' ')) && s++)
|
||||||
{
|
{
|
||||||
if (!ircncmp(s, "secure", 6) && (s[6] == '=' || s[6] == '\0'))
|
if (!ircncmp(s, "secure", 6) && (s[6] == '=' || s[6] == ' ' || s[6] == '\0'))
|
||||||
secure = 1;
|
secure = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue