1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-02 06:11:11 +00:00

default to hash channels

This commit is contained in:
Ailin Nemui 2022-06-13 02:44:33 +02:00
parent 68823eb6af
commit 891ef5df10

View File

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