mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
channel_change_topic: change one strlen == 0 to *str == '\0'
This commit is contained in:
parent
15840ac27b
commit
b114b11e36
@ -134,7 +134,7 @@ static void channel_change_topic(IRC_SERVER_REC *server, const char *channel,
|
||||
/* the topic may be sent out encoded, so we need to
|
||||
recode it back or /topic <tab> will not work properly */
|
||||
recoded = recode_in(SERVER(server), topic, channel);
|
||||
if (recoded == NULL || strlen(recoded) == 0) {
|
||||
if (recoded == NULL || *recoded == '\0') {
|
||||
signal_emit("channel topic changed", 1, chanrec);
|
||||
g_free(recoded);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user