mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02: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:
parent
bf36f71b99
commit
99f074b0db
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue