]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_whois.cpp
Merge pull request #984 from Renegade334/modules-exempt-uline
[user/henk/code/inspircd.git] / src / coremods / core_whois.cpp
index 966c4a790b23a17cb949dd191e37b534ef3361e6..7464e052753cad86ab0235389e32ad137d212d64 100644 (file)
@@ -96,7 +96,7 @@ void CommandWhois::SplitChanList(User* source, User* dest, const std::string& cl
                        line = prefix.str();
                }
 
-               line.append(cl.substr(start, pos - start + 1));
+               line.append(cl, start, pos - start + 1);
        }
 
        if (line.length() != prefix.str().length())