m_webirc: const-correctness

This commit is contained in:
Ed Kellett 2019-06-12 23:06:50 +01:00
parent d6c813780f
commit a6b97b7d88
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -129,10 +129,10 @@ mr_webirc(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc
if (parc >= 6)
{
char *s;
for (s = strtok(parv[5], " "); s != NULL; s = strtok(NULL, " "))
const char *s;
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;
}
}