summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 40594c8a9..f51656a55 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -110,11 +110,16 @@ bool DoneClassesAndTypes(const char* tag)
return true;
}
-bool userrec::HasMode(unsigned char m)
+bool userrec::IsModeSet(unsigned char m)
{
return (modes[m-65]);
}
+void userrec::SetMode(unsigned char m, bool value)
+{
+ modes[m-65] = value;
+}
+
const char* userrec::FormatModes()
{
static char data[MAXBUF];