diff options
author | Adam <Adam@anope.org> | 2011-04-25 03:16:57 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-05-16 04:07:56 -0400 |
commit | 076ebafa1b4cc935c466c615b94eaac415af9a67 (patch) | |
tree | dbc8b0f9e7b6f954569c13ad35598f5ebe8a081d /src/misc.cpp | |
parent | 6922bd239c778e8f6f2081476ce20b9426c515ad (diff) |
Moved some global functions to be member functions and misc cleanup
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index 90239a886..fff224eed 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -455,28 +455,6 @@ Anope::string myStrGetTokenRemainder(const Anope::string &str, const char dilim, /*************************************************************************/ /** - * Kill the user to enforce the sqline - * @param nick to kill - * @param killer whom is doing the killing - * @return void - */ -void EnforceQlinedNick(const Anope::string &nick, const Anope::string &killer) -{ - if (findbot(nick)) - return; - - User *u2 = finduser(nick); - - if (u2) - { - Log(LOG_NORMAL, "xline") << "Killed Q-lined nick: " << u2->GetMask(); - kill_user(killer, u2, "This nick is reserved for Services. Please use a non Q-Lined nick."); - } -} - -/*************************************************************************/ - -/** * Is the given nick a network service * @param nick to check * @param int Check if botserv bots @@ -691,26 +669,6 @@ std::vector<Anope::string> BuildStringVector(const Anope::string &src, char deli /*************************************************************************/ -/** - * Change an unsigned string to a signed string, overwriting the original - * string. - * @param input string - * @return output string, same as input string. - */ - -char *str_signed(unsigned char *str) -{ - char *nstr = reinterpret_cast<char *>(str); - while (*str) - { - *nstr = static_cast<char>(*str); - ++str; - ++nstr; - } - - return nstr; -} - bool Anope::Match(const Anope::string &str, const Anope::string &mask, bool case_sensitive) { size_t s = 0, m = 0, str_len = str.length(), mask_len = mask.length(); |