Changeset 3c3b916 for irc_channel.c


Ignore:
Timestamp:
2016-03-20T03:58:05Z (5 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
82b0295
Parents:
8f8a56f
git-author:
dequis <dx@…> (25-01-16 04:42:34)
git-committer:
dequis <dx@…> (20-03-16 03:58:05)
Message:

irc_channel_add_user: Don't call update_ops if not needed

It only affects irc->user and irc->root, and this was calling it for
everyone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_channel.c

    r8f8a56f r3c3b916  
    245245        ic->users = g_slist_insert_sorted(ic->users, icu, irc_channel_user_cmp);
    246246
    247         irc_channel_update_ops(ic, set_getstr(&ic->irc->b->set, "ops"));
     247        if (iu == ic->irc->user || iu == ic->irc->root) {
     248                irc_channel_update_ops(ic, set_getstr(&ic->irc->b->set, "ops"));
     249        }
    248250
    249251        if (iu == ic->irc->user || ic->flags & IRC_CHANNEL_JOINED) {
Note: See TracChangeset for help on using the changeset viewer.