]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix: Channel aliases should work a bit more like user aliases. This is a BC change...
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 2 May 2009 18:18:00 +0000 (18:18 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 2 May 2009 18:18:00 +0000 (18:18 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11347 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_alias.cpp

index 0c627482aeb47260deb3e66c6852b08a8f8ed9f4..04d43bcb8b7292b82307017f33f85d15887ecbc9 100644 (file)
@@ -241,15 +241,14 @@ class ModuleAlias : public Module
                while (*(compare.c_str()) == ' ')
                        compare.erase(compare.begin());
 
-               std::string safe(compare);
-
                ServerInstance->Logs->Log("FANTASY", DEBUG, "fantasy: compare is %s and safe is %s", compare.c_str(), safe.c_str());
 
                while (i != upperbound)
                {
                        if (i->second.ChannelCommand)
                        {
-                               if (DoAlias(user, c, &(i->second), compare, safe))
+                               // We use substr(1) here to remove the fantasy prefix
+                               if (DoAlias(user, c, &(i->second), compare, text.substr(1)))
                                        return 0;
                        }