]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_whois.cpp
Change all occurrences of plain sort() to std::sort()
[user/henk/code/inspircd.git] / src / coremods / core_whois.cpp
index bd0b624d17bca5f514f74a3e9a25ad9e4ebb1652..934dd21025ae88b650df9aa4aa8012ecc32472f5 100644 (file)
@@ -68,7 +68,9 @@ std::string CommandWhois::ChannelList(User* source, User* dest, bool spy)
                 */
                if (spy != (source == dest || !(c->IsModeSet(privatemode) || c->IsModeSet(secretmode)) || c->HasUser(source)))
                {
-                       list.push_back(memb->GetPrefixChar());
+                       char prefix = memb->GetPrefixChar();
+                       if (prefix)
+                               list.push_back(prefix);
                        list.append(c->name).push_back(' ');
                }
        }