diff options
author | Adam <Adam@anope.org> | 2010-11-22 13:50:08 -0600 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-12 19:36:18 -0500 |
commit | 9870ee04ddfe0c6c9875b16641109d0f6585c706 (patch) | |
tree | bfdf02e98da39d94a323115c5b87b2a90be86cae /modules/core/cs_forbid.cpp | |
parent | 1a286397e36b9442e43f67584e026f321a10d552 (diff) |
Removed some unused code paths in some of the modules
Diffstat (limited to 'modules/core/cs_forbid.cpp')
-rw-r--r-- | modules/core/cs_forbid.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/modules/core/cs_forbid.cpp b/modules/core/cs_forbid.cpp index 25fd90868..14f35b57c 100644 --- a/modules/core/cs_forbid.cpp +++ b/modules/core/cs_forbid.cpp @@ -51,14 +51,6 @@ class CommandCSForbid : public Command delete ci; ci = new ChannelInfo(chan); - if (!ci) - { - // this cant happen? - //Alog() << Config->s_ChanServ << ": Valid FORBID for " << ci->name << " by " << u->nick << " failed"; - u->SendMessage(ChanServ, CHAN_FORBID_FAILED, chan.c_str()); - return MOD_CONT; - } - ci->SetFlag(CI_FORBIDDEN); ci->forbidby = u->nick; ci->forbidreason = reason; |