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
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");