]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ldapauth.cpp
Fix oversights in substr() conversion
[user/henk/code/inspircd.git] / src / modules / m_ldapauth.cpp
index 804f6b82122ed85b7022ce88db180f6e9d7bca71..7da63284a47a430074d1607f4add6728dc633090 100644 (file)
@@ -64,7 +64,7 @@ class BindInterface : public LDAPInterface
                                while (i < text.length() - 1 && isalpha(text[i + 1]))
                                        ++i;
 
-                               std::string key(start, (i - start) + 1);
+                               std::string key(text, start, (i - start) + 1);
                                result.append(replacements[key]);
                        }
                        else