From 0f339a3a66b32588e2a558fa21646a1519bab7dc Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 3 Jun 2006 00:51:46 +0000 Subject: [PATCH] Fix for bug found by douglas - when replace= is undefined value (probably due to config error) a crash can occur, and this crash can (and will) propogate to other ircds on the network git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3986 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_alias.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index bd6c001b3..a816f7235 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -112,7 +112,7 @@ class ModuleAlias : public Module return 1; } } - if (Aliases[i].uline) + if ((u != NULL) && (Aliases[i].requires != "") && (Aliases[i].uline)) { if (!Srv->IsUlined(u->server)) { -- 2.39.5