Changeset 25f6151 for irc_channel.c


Ignore:
Timestamp:
2015-11-28T21:09:27Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
64b8c9f
Parents:
e61f9d1
Message:

set_eval_channel_type: skip the channel free/init if nothing is changed

Fixes trac ticket 1108: https://bugs.bitlbee.org/bitlbee/ticket/1108

I would have ignored that ticket (it's about some sort of legacy
migration) but the fix sounds like a sane thing to do

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_channel.c

    re61f9d1 r25f6151  
    211211        } else {
    212212                return SET_INVALID;
     213        }
     214
     215        /* Skip the free/init if nothing is being changed */
     216        if (ic->f == new) {
     217                return value;
    213218        }
    214219
Note: See TracChangeset for help on using the changeset viewer.