diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-23 21:34:04 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-23 21:34:04 +0000 |
commit | ea3ba4bfd1b072b4f14fb588286eedd0ea8c1d22 (patch) | |
tree | 6f31e715d182c4045f61fd69658c5ca092ae264a /src/channels.cpp | |
parent | 9f9e49509ea6d4c4ab0b70e15356d50e1376fdba (diff) |
Multi-prefix FJOIN, and allowing module-defined prefixes across the network
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5002 e03df62e-2008-0410-955e-edbf42e46eb7
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; |