diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-06-03 00:51:46 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-06-03 00:51:46 +0000 |
commit | 0f339a3a66b32588e2a558fa21646a1519bab7dc (patch) | |
tree | 775f0f3c849b6af2df7ba3783bead332d8c55341 /src/modules | |
parent | 933edf3875d5a329033d8a0415696b81488abcb8 (diff) |
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
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_alias.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |