diff options
| author | Adam <Adam@anope.org> | 2010-09-27 17:02:36 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-09-27 17:02:36 -0400 |
| commit | 6ca09be66341fd9f568fb0ac754df4f4c561bc1f (patch) | |
| tree | da58c10795eaa5ed9298c84d8a49f089018164ff /include/users.h | |
| parent | 7db5e19f7499cce5b86d63f8af5ae5ecf7245bf0 (diff) | |
Cleaned up some unused code, moved handling of user modes around so we dont get log messages about user modes when users connect, and fixed tracking some umodes on Unreal
Diffstat (limited to 'include/users.h')
| -rw-r--r-- | include/users.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/include/users.h b/include/users.h index 82ca59681..5abf6bbca 100644 --- a/include/users.h +++ b/include/users.h @@ -233,13 +233,6 @@ class CoreExport User : public Extensible */ void SetMode(BotInfo *bi, UserModeName Name, const Anope::string &Param = ""); - /* Set a mode on the user - * @param bi The client setting the mode - * @param ModeChar The mode char - * @param param Optional param for the mode - */ - void SetMode(BotInfo *bi, char ModeChar, const Anope::string &Param = ""); - /** Remove a mode on the user * @param bi The client setting the mode * @param um The user mode @@ -252,18 +245,17 @@ class CoreExport User : public Extensible */ void RemoveMode(BotInfo *bi, UserModeName Name); - /** Remove a mode from the user - * @param bi The client setting the mode - * @param ModeChar The mode char - */ - void RemoveMode(BotInfo *bi, char ModeChar); - /** Set a string of modes on a user - * @param bi The client setting the mode + * @param bi The client setting the modes * @param umodes The modes */ void SetModes(BotInfo *bi, const char *umodes, ...); + /** Set a string of modes on a user internally + * @param umodes The modes + */ + void SetModesInternal(const char *umodes, ...); + /** Find the channel container for Channel c that the user is on * This is preferred over using FindUser in Channel, as there are usually more users in a channel * than channels a user is in |
