From 25d63694265d44db2b1385e8d03c89d0edbed28d Mon Sep 17 00:00:00 2001 From: Stricted Date: Sun, 1 Sep 2013 01:47:42 +0200 Subject: [PATCH] opers now ignore nodelete --- src/chanserv.c | 6 +++--- src/modcmd.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/chanserv.c b/src/chanserv.c index 37d6531..9358d16 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -2391,7 +2391,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; @@ -2699,7 +2699,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; @@ -5425,7 +5425,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; diff --git a/src/modcmd.c b/src/modcmd.c index 88b35c1..cb02c8f 100644 --- a/src/modcmd.c +++ b/src/modcmd.c @@ -1945,7 +1945,7 @@ static MODCMD_FUNC(cmd_version) { * copyright information pertaining to changes you make to srvx. */ send_message_type(4, user, cmd->parent->bot, "$b"PACKAGE_STRING"$b ("CODENAME"), GIT Revision: %s, Built: "__DATE__", "__TIME__". Copyright 2000-2008 srvx Development Team.", git_version); - send_message_type(12, user, cmd->parent->bot, "The srvx Development Team includes Paul Chang, Adrian Dewhurst, Miles Peterson, Michael Poole and others.\nThe srvx Development Team can be reached at http://sf.net/projects/srvx/ or in #srvx on irc.gamesurge.net.\nThis version has been modified by pk910, Stricted, NurPech - visit #srvx @ irc.nextirc.net."); + send_message_type(12, user, cmd->parent->bot, "The srvx Development Team includes Paul Chang, Adrian Dewhurst, Miles Peterson, Michael Poole and others.\nThe srvx Development Team can be reached at http://sf.net/projects/srvx/ or in #srvx on irc.gamesurge.net.\nThis version has been modified by pk910, Stricted, NurPech - visit #dev @ irc.nextirc.net."); return 1; } -- 2.20.1