Merge pull request #533 from dequis/statusmess

Set the default STATUSMSG to @ instead of @+ if it's missing
This commit is contained in:
LemonBoy 2016-09-04 12:11:02 +02:00 committed by ailin-nemui
commit 31c0a9d7e8
2 changed files with 7 additions and 8 deletions

View file

@ -89,8 +89,10 @@ static int ischannel_func(SERVER_REC *server, const char *data)
chantypes = "#&!+"; /* normal, local, secure, modeless */
statusmsg = g_hash_table_lookup(irc_server->isupport, "statusmsg");
if (statusmsg != NULL)
data += strspn(data, statusmsg);
if (statusmsg == NULL)
statusmsg = "@";
data += strspn(data, statusmsg);
/* strchr(3) considers the trailing NUL as part of the string, make sure
* we didn't advance too much. */