summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp20
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;