diff options
| author | 2013-06-18 19:10:07 +0200 | |
|---|---|---|
| committer | 2013-07-19 19:40:04 +0200 | |
| commit | fd1d19d6345943ecdb5ce4ef947f9b3c5c8bca86 (patch) | |
| tree | 20ce1866b482808a85b34c7c09e53c3159617bc0 /src/usermanager.cpp | |
| parent | Move SetNoticeMask(), FormatNoticeMasks() and ProcessNoticeMasks() from the U... (diff) | |
Replace hardcoded mode letters, part 3
This changes most remaining User::IsModeSet() calls to use ModeReferences for modes that were created by other modules or the core
Diffstat (limited to 'src/usermanager.cpp')
| -rw-r--r-- | src/usermanager.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index e7d1fd05c..15e59c800 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -316,19 +316,6 @@ void UserManager::ServerNoticeAll(const char* text, ...) } } -/* return how many users have a given mode e.g. 'a' */ -int UserManager::ModeCount(const char mode) -{ - int c = 0; - for(user_hash::iterator i = clientlist->begin(); i != clientlist->end(); ++i) - { - User* u = i->second; - if (u->modes[mode-65]) - c++; - } - return c; -} - void UserManager::GarbageCollect() { // Reset the already_sent IDs so we don't wrap it around and drop a message |
