diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-05-24 18:20:58 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-05-24 18:20:58 +0200 |
commit | b8c1db4e907a52981886dfbb4f033a48fccc259a (patch) | |
tree | e80012607b38842ce559ce6723f3c5c31599e218 | |
parent | f2dcf19923c4b60b268899c93b8deb3e6f30c6fe (diff) |
Remove dead ModeParser code
-rw-r--r-- | include/mode.h | 7 | ||||
-rw-r--r-- | src/mode.cpp | 16 |
2 files changed, 0 insertions, 23 deletions
diff --git a/include/mode.h b/include/mode.h index 57f1b0669..fc6684a6f 100644 --- a/include/mode.h +++ b/include/mode.h @@ -447,11 +447,6 @@ class CoreExport ModeParser ModeParser(); ~ModeParser(); - /** Used to check if user 'd' should be allowed to do operation 'MASK' on channel 'chan'. - * for example, should 'user A' be able to 'op' on 'channel B'. - */ - User* SanityChecks(User *user,const char *dest,Channel *chan,int status); - /** Initialize all built-in modes */ static void InitBuiltinModes(); @@ -555,8 +550,6 @@ class CoreExport ModeParser */ std::string GiveModeList(ModeMasks m); - static bool PrefixComparison(ModeHandler* one, ModeHandler* two); - /** This returns the PREFIX=(ohv)@%+ section of the 005 numeric, or * just the "@%+" part if the parameter false */ diff --git a/src/mode.cpp b/src/mode.cpp index cd5c1d158..3da983627 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -184,22 +184,6 @@ void ModeWatcher::AfterMode(User*, User*, Channel*, const std::string&, bool, Mo { } -User* ModeParser::SanityChecks(User *user, const char *dest, Channel *chan, int) -{ - User *d; - if ((!user) || (!dest) || (!chan) || (!*dest)) - { - return NULL; - } - d = ServerInstance->FindNick(dest); - if (!d) - { - user->WriteNumeric(ERR_NOSUCHNICK, "%s %s :No such nick/channel",user->nick.c_str(), dest); - return NULL; - } - return d; -} - void ModeParser::DisplayCurrentModes(User *user, User* targetuser, Channel* targetchannel, const char* text) { if (targetchannel) |