diff options
| author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-30 08:09:07 -0400 |
|---|---|---|
| committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-30 08:09:07 -0400 |
| commit | 527304ed2cbe0e217c4c5cd35716b4f5f44d8431 (patch) | |
| tree | 80ade7ab3e84e99dbc53ed9979c4702ab0d6d490 /include | |
| parent | 0cacbf30d294b61f8a001d01a6dfc300ce797132 (diff) | |
Some code cleanup and constification in nickserv.cpp.
Diffstat (limited to 'include')
| -rw-r--r-- | include/account.h | 2 | ||||
| -rw-r--r-- | include/extern.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/account.h b/include/account.h index c625c4e0e..eda40ef94 100644 --- a/include/account.h +++ b/include/account.h @@ -198,7 +198,7 @@ class CoreExport NickCore : public Extensible, public Flags<NickCoreFlag, NI_END * * Retrieves an entry from the access list corresponding to the given index. */ - Anope::string GetAccess(unsigned entry); + Anope::string GetAccess(unsigned entry) const; /** Find an entry in the nick's access list * diff --git a/include/extern.h b/include/extern.h index 4fafd494e..08804764e 100644 --- a/include/extern.h +++ b/include/extern.h @@ -309,8 +309,8 @@ E void SetDefaultMLock(); /**** nickserv.c ****/ E NickRequest *findrequestnick(const Anope::string &nick); -E void get_aliases_stats(long *nrec, long *memuse); -E void get_core_stats(long *nrec, long *memuse); +E void get_aliases_stats(long &count, long &mem); +E void get_core_stats(long &count, long &mem); E void change_core_display(NickCore *nc); E void change_core_display(NickCore *nc, const Anope::string &newdisplay); E int do_setmodes(User *u); @@ -322,7 +322,7 @@ E void expire_nicks(); E void expire_requests(); E NickAlias *findnick(const Anope::string &nick); E NickCore *findcore(const Anope::string &nick); -E bool is_on_access(User *u, NickCore *nc); +E bool is_on_access(const User *u, const NickCore *nc); /**** process.c ****/ |
