summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-08 21:37:16 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-08 21:37:16 +0000
commitf6fc729c7211ac6cc9fca4ef63a710b48ccf2457 (patch)
tree15a14e80a78cda35fd3865fe7546e8c2877c7588 /include
parent07e2a596f05f011adfa58fab25214225e80cb6f4 (diff)
Did some renaming so that the methods for modes in chanrec and userrec are identical.
bool IsModeSet(const unsigned char c); void SetMode(const unsigned char c, bool value); Fixed m_botmode for new api git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4194 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/channels.h4
-rw-r--r--include/users.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/include/channels.h b/include/channels.h
index 76b604668..ade284709 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -166,14 +166,14 @@ class chanrec : public Extensible
* @param mode The mode character to set or unset
* @param mode_on True if you want to set the mode or false if you want to remove it
*/
- void SetCustomMode(char mode,bool mode_on);
+ void SetMode(char mode,bool mode_on);
/** Sets or unsets the parameters for a custom mode in a channels info
* @param mode The mode character to set or unset
* @param parameter The parameter string to associate with this mode character
* @param mode_on True if you want to set the mode or false if you want to remove it
*/
- void SetCustomModeParam(char mode,char* parameter,bool mode_on);
+ void SetModeParam(char mode,char* parameter,bool mode_on);
/** Returns true if a mode is set on a channel
* @param mode The mode character you wish to query
diff --git a/include/users.h b/include/users.h
index 2b3f74742..a7d1c9250 100644
--- a/include/users.h
+++ b/include/users.h
@@ -269,7 +269,9 @@ class userrec : public connection
*/
const char* FormatModes();
- bool HasMode(unsigned char m);
+ bool IsModeSet(unsigned char m);
+
+ void SetMode(unsigned char m, bool value);
/** Returns true if a user is invited to a channel.
*/