diff options
| author | 2006-07-08 21:37:16 +0000 | |
|---|---|---|
| committer | 2006-07-08 21:37:16 +0000 | |
| commit | f6fc729c7211ac6cc9fca4ef63a710b48ccf2457 (patch) | |
| tree | 15a14e80a78cda35fd3865fe7546e8c2877c7588 /src/users.cpp | |
| parent | Convert to new API and optimize colour checking (we were using 0 ... string::... (diff) | |
| download | inspircd++-f6fc729c7211ac6cc9fca4ef63a710b48ccf2457.tar.gz inspircd++-f6fc729c7211ac6cc9fca4ef63a710b48ccf2457.tar.bz2 inspircd++-f6fc729c7211ac6cc9fca4ef63a710b48ccf2457.zip | |
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 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 7 |
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]; |
