mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Merge pull request #1388 from ailin-nemui/default-hash-chan
default to hash channels
(cherry picked from commit a5f5ea7d79
)
This commit is contained in:
parent
730c3c1a12
commit
1b6b92ffff
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user