summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-02 18:17:59 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-02 18:17:59 +0000
commit6cfc9625c0068d1a2d67fb9d08a1670a6f2358e4 (patch)
treeefeb3f7b857bcd27f2e63c85865ba0288baa6fbb /src
parent3ff5e57de4ceca0b3287c826b7b409e5f14196a1 (diff)
Replace $chan to "" for a non-channel command.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11346 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_alias.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp
index dbab1a7c8..0c627482a 100644
--- a/src/modules/m_alias.cpp
+++ b/src/modules/m_alias.cpp
@@ -363,6 +363,11 @@ class ModuleAlias : public Module
/* Channel specific variables */
SearchAndReplace(newline, std::string("$chan"), c->name);
}
+ else
+ {
+ /* We don't want these in a user alias */
+ SearchAndReplace(newline, std::string("$chan"), "");
+ }
irc::tokenstream ss(newline);
pars.clear();