From 6725061d066929143d38f8d32cf032d9968c39f4 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 5 Feb 2006 11:54:40 +0000 Subject: Fix to prevent use of aliases before reigstering connection git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3092 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_alias.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index f73fd74db..db3d75bae 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -92,8 +92,11 @@ class ModuleAlias : public Module userrec *u = NULL; irc::string c = command.c_str(); - /* If the command is valid, we dont want to know */ - if (validated) + /* If the command is valid, we dont want to know, + * and if theyre not registered yet, we dont want + * to know either + */ + if ((validated) || (user->registered != 7)) return 0; for (unsigned int i = 0; i < Aliases.size(); i++) -- cgit v1.2.3