mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02:00
channel_change_topic: change one strlen == 0 to *str == '\0'
This commit is contained in:
parent
15840ac27b
commit
b114b11e36
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
/* the topic may be sent out encoded, so we need to
|
||||||
recode it back or /topic <tab> will not work properly */
|
recode it back or /topic <tab> will not work properly */
|
||||||
recoded = recode_in(SERVER(server), topic, channel);
|
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);
|
signal_emit("channel topic changed", 1, chanrec);
|
||||||
g_free(recoded);
|
g_free(recoded);
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue