From: lukas9950 Date: Sun, 24 Feb 2013 00:44:04 +0000 (+0100) Subject: added some nodelete overrides X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=2817677c02e88e4c8f02a7ce611dd0b2f060bb9b added some nodelete overrides --- 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;