From eeb54f3c8b7c40bc55fb8a5a822c492e50a52dd6 Mon Sep 17 00:00:00 2001 From: pk910 Date: Sat, 17 Sep 2011 21:39:27 +0200 Subject: [PATCH] fixed cmd_resync (bot shouldn't deop itself...) --- cmd_neonserv_resync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd_neonserv_resync.c b/cmd_neonserv_resync.c index 5ce3983..78a1edd 100644 --- a/cmd_neonserv_resync.c +++ b/cmd_neonserv_resync.c @@ -103,12 +103,12 @@ static void neonserv_cmd_resync_async1(struct ClientSocket *client, struct Clien if(!(chanuser->flags & CHANUSERFLAG_OPPED) && resync_op) modeBufferOp(modeBuf, chanuser->user->nick); } else if(caccess >= db_enfvoice) { - if((chanuser->flags & CHANUSERFLAG_OPPED) && resync_op) + if((chanuser->flags & CHANUSERFLAG_OPPED) && resync_op && !(chanuser->user->flags & (USERFLAG_ISBOT | USERFLAG_ISIRCOP))) modeBufferDeop(modeBuf, chanuser->user->nick); if(!(chanuser->flags & CHANUSERFLAG_VOICED) && resync_voice) modeBufferVoice(modeBuf, chanuser->user->nick); } else { - if((chanuser->flags & CHANUSERFLAG_OPPED) && resync_op) + if((chanuser->flags & CHANUSERFLAG_OPPED) && resync_op && !(chanuser->user->flags & (USERFLAG_ISBOT | USERFLAG_ISIRCOP))) modeBufferDeop(modeBuf, chanuser->user->nick); if((chanuser->flags & CHANUSERFLAG_VOICED) && resync_voice) modeBufferDevoice(modeBuf, chanuser->user->nick); -- 2.20.1