Skip to content

Commit

Permalink
Merge pull request irssi#1388 from ailin-nemui/default-hash-chan
Browse files Browse the repository at this point in the history
default to hash channels

(cherry picked from commit a5f5ea7)
  • Loading branch information
ailin-nemui authored and Ailin Nemui committed Jul 2, 2022
1 parent 730c3c1 commit 1b6b92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/irc/core/irc-channels.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static char *force_channel_name(IRC_SERVER_REC *server, const char *name)
return g_strdup(name);

chantypes = g_hash_table_lookup(server->isupport, "chantypes");
if (chantypes == NULL || *chantypes == '\0')
if (chantypes == NULL || *chantypes == '\0' || strchr(chantypes, '#') != NULL)
chantypes = "#";

return g_strdup_printf("%c%s", *chantypes, name);
Expand Down

0 comments on commit 1b6b92f

Please sign in to comment.