From 6cfc9625c0068d1a2d67fb9d08a1670a6f2358e4 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 2 May 2009 18:17:59 +0000 Subject: Replace $chan to "" for a non-channel command. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11346 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_alias.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules') 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(); -- cgit v1.2.3