|
@@ -557,7 +557,14 @@ got_op(struct chanset_t *chan, memberlist *m, memberlist *mv)
|
|
|
meop = 1;
|
|
meop = 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- get_user_flagrec(mv->user, &victim, chan->dname, chan);
|
|
|
|
|
|
|
+ if (mv->user) {
|
|
|
|
|
+ get_user_flagrec(mv->user, &victim, chan->dname, chan);
|
|
|
|
|
+
|
|
|
|
|
+ // Did some other bot just get opped, and I'm not opped yet?
|
|
|
|
|
+ if (mv->user->bot && !me_opped && !meop) {
|
|
|
|
|
+ chan->channel.do_opreq = 1;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
/* Flags need to be set correctly right from the beginning now, so that
|
|
/* Flags need to be set correctly right from the beginning now, so that
|
|
|
* add_mode() doesn't get irritated.
|
|
* add_mode() doesn't get irritated.
|
|
|
*/
|
|
*/
|