1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-13 05:03:45 -04:00

channel_change_topic: change one strlen == 0 to *str == '\0'

This commit is contained in:
dequis 2018-07-30 23:45:56 -03:00
parent 15840ac27b
commit b114b11e36

View File

@ -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;