diff options
author | Sadie Powell <sadie@witchery.services> | 2020-03-12 17:27:11 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-03-12 17:51:03 +0000 |
commit | 1efc234a54bd66714f9743ca7d1f3d5c0be3628e (patch) | |
tree | b352bf8c30f8fea17f6be2b17d0a74fe97fa61da /include | |
parent | 906e44f687185f6507cba95ec1b565de4936eb03 (diff) |
Implement support for the SERVLIST command.
Diffstat (limited to 'include')
-rw-r--r-- | include/moduledefs.h | 2 | ||||
-rw-r--r-- | include/usermanager.h | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/include/moduledefs.h b/include/moduledefs.h index 9f54e3eeb..a706a8883 100644 --- a/include/moduledefs.h +++ b/include/moduledefs.h @@ -22,7 +22,7 @@ class Module; /** The version of the InspIRCd ABI which is presently in use. */ -#define MODULE_ABI 3011UL +#define MODULE_ABI 3012UL /** Stringifies the value of a symbol. */ #define MODULE_STRINGIFY_SYM1(DEF) MODULE_STRINGIFY_SYM2(DEF) diff --git a/include/usermanager.h b/include/usermanager.h index ad09d968c..2a18393ab 100644 --- a/include/usermanager.h +++ b/include/usermanager.h @@ -46,6 +46,9 @@ class CoreExport UserManager : public fakederef<UserManager> */ typedef std::vector<User*> OperList; + /** A list containing users who are on a U-lined servers. */ + typedef std::vector<User*> ULineList; + /** A list holding local users */ typedef insp::intrusive_list<LocalUser> LocalList; @@ -89,14 +92,14 @@ class CoreExport UserManager : public fakederef<UserManager> */ OperList all_opers; + /** A list of users on U-lined servers. */ + ULineList all_ulines; + /** Number of unregistered users online right now. * (Unregistered means before USER/NICK/dns) */ unsigned int unregistered_count; - /** The number of users on U-lined servers. */ - unsigned int uline_count; - /** Perform background user events for all local users such as PING checks, registration timeouts, * penalty management and recvq processing for users who have data in their recvq due to throttling. */ @@ -175,7 +178,7 @@ class CoreExport UserManager : public fakederef<UserManager> /** Return a count of users on a u-lined servers. * @return The number of users on u-lined servers. */ - unsigned int ULineCount() const { return this->uline_count; } + unsigned int ULineCount() const { return this->all_ulines.size(); } /** Return a count of local registered users * @return The number of registered local users |