From fd1d19d6345943ecdb5ce4ef947f9b3c5c8bca86 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Tue, 18 Jun 2013 19:10:07 +0200 Subject: 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 --- include/usermanager.h | 4 ---- include/users.h | 1 - 2 files changed, 5 deletions(-) (limited to 'include') diff --git a/include/usermanager.h b/include/usermanager.h index 50dac27bf..c6745ace6 100644 --- a/include/usermanager.h +++ b/include/usermanager.h @@ -161,10 +161,6 @@ class CoreExport UserManager */ unsigned int LocalUserCount() const { return (this->local_count - this->UnregisteredUserCount()); } - /** Number of users with a certain mode set on them - */ - int ModeCount(const char mode); - /** Send a server notice to all local users * @param text The text format string to send * @param ... The format arguments diff --git a/include/users.h b/include/users.h index 0e660d098..40ba17332 100644 --- a/include/users.h +++ b/include/users.h @@ -436,7 +436,6 @@ class CoreExport User : public Extensible * @param m The user mode * @param value On or off setting of the mode */ - void SetMode(unsigned char m, bool value); void SetMode(ModeHandler* mh, bool value); void SetMode(ModeHandler& mh, bool value) { SetMode(&mh, value); } -- cgit v1.3.1-10-gc9f91