]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Alter SetModeParam to take const char* to save on casts, notice a load of modules...
[user/henk/code/inspircd.git] / include / users.h
index 383439c0bab9ccf8dc48d7fafc63f06006d07a7b..a7d1c92505cbacb08ff57b517fae7916b0312b28 100644 (file)
@@ -45,7 +45,7 @@ enum ClassTypes {
 
 /** RFC1459 channel modes
  *  */
-enum ChannelModes {
+enum UserModes {
        UM_SERVERNOTICE = 's'-65,
        UM_WALLOPS = 'w'-65,
        UM_INVISIBLE = 'i'-65,
@@ -268,6 +268,10 @@ class userrec : public connection
         * Create a displayable mode string for this users umodes
         */
        const char* FormatModes();
+
+       bool IsModeSet(unsigned char m);
+
+       void SetMode(unsigned char m, bool value);
        
        /** Returns true if a user is invited to a channel.
         */