diff options
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index d417ab763..e7564c3ea 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -906,6 +906,26 @@ const char* chanrec::GetPrefixChar(userrec *user) return px; } +const char* chanrec::GetAllPrefixChars(userrec* user) +{ + static char prefix[MAXBUF]; + int ctr = 0; + *prefix = 0; + + prefixlist::iterator n = prefixes.find(user); + if (n != prefixes.end()) + { + for (std::vector<prefixtype>::iterator x = n->second.begin(); x != n->second.end(); x++) + { + prefix[ctr++] = x->first; + } + } + + prefix[ctr] = 0; + + return prefix; +} + unsigned int chanrec::GetPrefixValue(userrec* user) { unsigned int mx = 0; |