1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

fe_channel_skip_prefix: fix return value (FALSE/NULL isn't valid)

The return value is a char*, and here it was false which is 0 which is
more or less the same as null.

That could have been a crash somewhere, the functions that call this
don't expect null ever.
This commit is contained in:
dequis 2015-09-22 01:17:15 -03:00
parent bf36f71b99
commit 99f074b0db

View File

@ -56,7 +56,7 @@ const char *fe_channel_skip_prefix(IRC_SERVER_REC *server, const char *target)
/* Exit early if target doesn't name a channel */
if (server_ischannel(SERVER(server), target) == FALSE)
return FALSE;
return target;
statusmsg = g_hash_table_lookup(server->isupport, "statusmsg");