@@ -671,7 +671,7 @@ got_deop(struct chanset_t *chan, memberlist *m, memberlist *mv, char *isserver)
/* do we want to reop victim? */
if (
/* I didn't deop them, another bot didn't deop them and they didn't deop themselves. */
- ((m && !m->is_me && mv != m && !(m->user && m->user->bot)) || (!m)) && (
+ (was_op && ((m && !m->is_me && mv != m && !(m->user && m->user->bot)) || (!m))) && (
/*
* reversing
* They are either an op or this chan is -bitch