summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-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();