aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2017-01-01 21:52:49 +0100
committerMarius Halden <marius.h@lden.org>2017-01-01 21:52:49 +0100
commitefaa514039a4b907e2c5c6309295c66b27b1f691 (patch)
tree55f4962e14be3df95c4168d06a8d1b95ccfb8298 /irc_im.c
parentd35affbcea87f453fb20c4bb545a10b668eae81b (diff)
parent2e8523b30bafa86685655001457a2615936b646a (diff)
Merge branch 'master' into patched-master
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/irc_im.c b/irc_im.c
index eea2bc35..dd56165c 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -88,11 +88,12 @@ static gboolean bee_irc_user_new(bee_t *bee, bee_user_t *bu)
str_reject_chars(iu->host, " ", '_');
if (bu->flags & BEE_USER_LOCAL) {
- char *s = set_getstr(&bee->set, "handle_unknown");
+ char *s = set_getstr(&bu->ic->acc->set, "handle_unknown") ? :
+ set_getstr(&bee->set, "handle_unknown");
- if (strcmp(s, "add_private") == 0) {
+ if (g_strcasecmp(s, "add_private") == 0) {
iu->last_channel = NULL;
- } else if (strcmp(s, "add_channel") == 0) {
+ } else if (g_strcasecmp(s, "add_channel") == 0) {
iu->last_channel = irc->default_channel;
}
}