diff options
| author | 2006-07-08 17:53:03 +0000 | |
|---|---|---|
| committer | 2006-07-08 17:53:03 +0000 | |
| commit | 3f389a4bd951cbf6f8ca139473647eaae0447322 (patch) | |
| tree | 916fe4d48aa33f0fdb090e860fb4659c792d132d /src/users.cpp | |
| parent | Refactored user modes to work like the channel modes - core and module data n... (diff) | |
| download | inspircd++-3f389a4bd951cbf6f8ca139473647eaae0447322.tar.gz inspircd++-3f389a4bd951cbf6f8ca139473647eaae0447322.tar.bz2 inspircd++-3f389a4bd951cbf6f8ca139473647eaae0447322.zip | |
Convert new +isw modes to new mode format
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4176 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index 78409dc6f..48ce0054b 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -110,6 +110,19 @@ bool DoneClassesAndTypes(const char* tag) return true; } +const char* userrec::FormatModes() +{ + static char data[MAXBUF]; + int offset = 0; + for (int n = 0; n < 64; n++) + { + if (modes[n]) + data[offset++] = n+65; + } + data[offset] = 0; + return data; +} + userrec::userrec() { // the PROPER way to do it, AVOID bzero at *ALL* costs |
