]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/dns.cpp
Added some missing parameter checking in m_swhois
[user/henk/code/inspircd.git] / src / dns.cpp
index c3e909700fb57c89f155e031cde74ca902ea698a..fab9631b79baca213f072c1307730111b8397ea3 100644 (file)
@@ -756,7 +756,7 @@ DNSResult DNS::GetResult()
                                 * as the last parameter on the line with a value ":1".
                                 */
                                if (*formatted == ':')
-                                       resultstr = "0" + resultstr;
+                                       resultstr.insert(0, "0");
                        }
                        break;