From 1fe8085c6dbecc9558e61ea1829dbf3fcb41830e Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 1 Apr 2008 16:30:49 +0000 Subject: Remove this, it won't work (reliably), use ModeParser::ModeString() instead, ta B git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9243 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index dd41d1344..6782ffc5b 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -1001,35 +1001,6 @@ const char* Channel::GetAllPrefixChars(User* user) return prefix; } - -const char* Channel::GetAllPrefixModes(User* user) -{ - static char prefix[MAXBUF]; - int ctr = 0; - *prefix = 0; - - prefixlist::iterator n = prefixes.find(user); - if (n != prefixes.end()) - { - for (std::vector::iterator x = n->second.begin(); x != n->second.end(); x++) - { - ModeHandler *mh = ServerInstance->Modes->FindPrefix(x->first); - - if (!mh) - { - ServerInstance->Logs->Log("MODES", DEFAULT, "WTF: Can't find mode from prefix %c", x->first); - throw CoreException("I can't find a mode from prefix, HALP!"); - } - else - prefix[ctr++] = mh->GetModeChar(); - } - } - - prefix[ctr] = 0; - - return prefix; -} - unsigned int Channel::GetPrefixValue(User* user) { prefixlist::iterator n = prefixes.find(user); -- cgit v1.3.1-10-gc9f91