summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mode.h7
-rw-r--r--src/mode.cpp16
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)