summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-05-10 20:21:32 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-05-10 20:21:32 +0000
commit44809375aac55014c093bf22ef1a70a08a5c09a0 (patch)
tree03b019c3aef141d7121c27886b0e7df794a317a6 /src
parent3c438a5d5b057327b9e46f5e3820c8f8153542f5 (diff)
Fix for crash on: /OS RAW PUSH non-existent-nick :::nick!ident@host KICK #chan nick :any reason
(yes, REALLY.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3942 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 97ed6754b..652a8d5f2 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1875,6 +1875,9 @@ class TreeSocket : public InspSocket
userrec* u = Srv->FindNick(params[0]);
+ if (!u)
+ return true;
+
if (IS_LOCAL(u))
{
// push the raw to the user