hirc

IRC client
Log | Files | Refs

commit b7af90b01f4c31dcd14b310de383bdf2b9c0328b
parent 0888cb898fe7ac7e9b98d05be6f952a503716bd1
Author: hhvn <dev@hhvn.uk>
Date:   Wed, 17 Nov 2021 17:56:21 +0000

commands.c: use CHANTYPES from support not def.chantypes

Diffstat:
Mcommands.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commands.c b/commands.c @@ -76,7 +76,7 @@ command_join(struct Server *server, char *str) { return; } - if (strchr(config_gets("def.chantypes"), *str)) + if (strchr(support_get(server, "CHANTYPES"), *str)) ircprintf(server, "JOIN %s\r\n", str); else ircprintf(server, "JOIN #%s\r\n", str); @@ -93,7 +93,7 @@ command_part(struct Server *server, char *str) { return; } - if (strchr(config_gets("def.chantypes"), *channel)) + if (strchr(support_get(server, "CHANTYPES"), *channel)) ircprintf(server, "PART %s\r\n", channel); else ircprintf(server, "PART #%s\r\n", channel);