From 2817677c02e88e4c8f02a7ce611dd0b2f060bb9b Mon Sep 17 00:00:00 2001 From: lukas9950 Date: Sun, 24 Feb 2013 01:44:04 +0100 Subject: [PATCH] added some nodelete overrides --- src/chanserv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chanserv.c b/src/chanserv.c index 887b95a..0ebed1b 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -2382,7 +2382,7 @@ static CHANSERV_FUNC(cmd_move) REQUIRE_PARAMS(2); - if(IsProtected(channel->channel_info)) + if(IsProtected(channel->channel_info) && !IsOper(user)) { reply("CSMSG_MOVE_NODELETE", channel->name); return 0; @@ -2690,7 +2690,7 @@ static CHANSERV_FUNC(cmd_merge) return 0; } - if(IsProtected(channel->channel_info)) + if(IsProtected(channel->channel_info) && !IsOper(user)) { reply("CSMSG_MERGE_NODELETE"); return 0; @@ -5409,7 +5409,7 @@ static CHANSERV_FUNC(cmd_csuspend) REQUIRE_PARAMS(3); - if(IsProtected(channel->channel_info)) + if(IsProtected(channel->channel_info) && !IsOper(user)) { reply("CSMSG_SUSPEND_NODELETE", channel->name); return 0; -- 2.20.1