diff options
-rw-r--r-- | irc_channel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/irc_channel.c b/irc_channel.c index 6ba5a4d7..3ccbce55 100644 --- a/irc_channel.c +++ b/irc_channel.c @@ -244,7 +244,9 @@ int irc_channel_add_user(irc_channel_t *ic, irc_user_t *iu) ic->users = g_slist_insert_sorted(ic->users, icu, irc_channel_user_cmp); - irc_channel_update_ops(ic, set_getstr(&ic->irc->b->set, "ops")); + if (iu == ic->irc->user || iu == ic->irc->root) { + irc_channel_update_ops(ic, set_getstr(&ic->irc->b->set, "ops")); + } if (iu == ic->irc->user || ic->flags & IRC_CHANNEL_JOINED) { ic->flags |= IRC_CHANNEL_JOINED; |