diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/extern.h | 8 | ||||
-rw-r--r-- | include/sockets.h | 2 | ||||
-rw-r--r-- | include/users.h | 13 |
3 files changed, 11 insertions, 12 deletions
diff --git a/include/extern.h b/include/extern.h index c1d01d79f..02b5d91f8 100644 --- a/include/extern.h +++ b/include/extern.h @@ -157,8 +157,8 @@ E std::vector<Anope::string> languages; E void InitLanguages(); E const Anope::string GetString(const Anope::string &language, LanguageString string); E const Anope::string GetString(LanguageString string); -E const Anope::string GetString(const NickCore *nc, LanguageString string); -E const Anope::string GetString(const User *u, LanguageString string); +E const Anope::string GetString(NickCore *nc, LanguageString string); +E const Anope::string GetString(User *u, LanguageString string); E const Anope::string GetString(const char *domain, Anope::string language, const Anope::string &string); E Anope::string language_strings[LANG_STRING_COUNT]; E void SyntaxError(BotInfo *bi, User *u, const Anope::string &command, LanguageString message); @@ -239,8 +239,8 @@ E const char *merge_args(int argc, char **argv); E const char *merge_args(int argc, const char **argv); E time_t dotime(const Anope::string &s); -E Anope::string duration(const NickCore *nc, time_t seconds); -E Anope::string expire_left(const NickCore *nc, time_t expires); +E Anope::string duration(NickCore *nc, time_t seconds); +E Anope::string expire_left(NickCore *nc, time_t expires); E Anope::string do_strftime(const time_t &t); E bool doValidHost(const Anope::string &host, int type); diff --git a/include/sockets.h b/include/sockets.h index 2f1b3c8d7..a24e346d7 100644 --- a/include/sockets.h +++ b/include/sockets.h @@ -330,11 +330,11 @@ class CoreExport ConnectionSocket : public BufferedSocket class ClientSocket : public BufferedSocket { + public: /* Listen socket this connection came from */ ListenSocket *LS; /* Clients address */ sockaddrs clientaddr; - public: /** Constructor * @param ls Listen socket this connection is from diff --git a/include/users.h b/include/users.h index 889eca357..776ce450c 100644 --- a/include/users.h +++ b/include/users.h @@ -90,7 +90,7 @@ class CoreExport User : public Extensible /** Update the nickname of a user record accordingly, should be * called from ircd protocol. */ - virtual void SetNewNick(const Anope::string &newnick); + void SetNewNick(const Anope::string &newnick); /** Update the displayed (vhost) of a user record. * This is used (if set) instead of real host. @@ -155,15 +155,15 @@ class CoreExport User : public Extensible * @param fmt Format of the Message * @param ... any number of parameters */ - virtual void SendMessage(const Anope::string &source, const char *fmt, ...) const; - virtual void SendMessage(const Anope::string &source, const Anope::string &msg) const; + void SendMessage(const Anope::string &source, const char *fmt, ...); + virtual void SendMessage(const Anope::string &source, const Anope::string &msg); /** Send a language string message to a user * @param source Sender * @param message The message num * @param ... parameters */ - void SendMessage(BotInfo *source, LanguageString message, ...) const; + void SendMessage(BotInfo *source, LanguageString message, ...); /** Collide a nick * See the comment in users.cpp @@ -184,19 +184,18 @@ class CoreExport User : public Extensible * @return The account or NULL */ virtual NickCore *Account(); - virtual const NickCore *Account() const; /** Check if the user is identified for their nick * @param CheckNick True to check if the user is identified to the nickname they are on too * @return true or false */ - virtual bool IsIdentified(bool CheckNick = false) const; + virtual bool IsIdentified(bool CheckNick = false); /** Check if the user is recognized for their nick (on the nicks access list) * @param CheckSecure Only returns true if the user has secure off * @return true or false */ - virtual bool IsRecognized(bool CheckSecure = false) const; + virtual bool IsRecognized(bool CheckSecure = false); /** Update the last usermask stored for a user, and check to see if they are recognized */ |