+
+ def modechange(m)
+ # if we got opped on a channel we want to kick somebody from,
+ # do the kicking
+
+ # getting opped on a channel is a channel mode change, so bail out if this
+ # is not a channel mode change
+ return unless m.target.kind_of? Channel
+ # bail out if we are not op, too
+ return unless @bot.myself.is_op?(m.target)
+ # bail out if there's nobody to kick
+ to_kick = @should_kick.delete(m.target.downcase)
+ return unless to_kick
+ # kick the evil user that kicked us
+ @bot.kick m.target, to_kick, _("for kicking me out earlier")
+ end
+