summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-04 15:25:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-04 15:25:22 +0000
commit6da80ed86815f3cae61ad65d5a1ced5087e5e937 (patch)
tree5868b4bb12bf934d94cdddeb2bfe54c0b55cbf5a /src
parentaa3a8ef381626097fef880c2e7761270cc986b19 (diff)
Not checking a pointer, bad brain bad
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4705 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index af91f9689..c41e39649 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1029,7 +1029,7 @@ class TreeSocket : public InspSocket
*/
mh = ServerInstance->ModeGrok->FindMode(*x, chan ? MODETYPE_CHANNEL : MODETYPE_USER);
- if ((mh->GetNumParams(adding) > 0) && (!mh->IsListMode()))
+ if ((mh) && (mh->GetNumParams(adding) > 0) && (!mh->IsListMode()))
{
/* We only want to do special things to
* modes with parameters, we are going to rewrite