summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-23 22:10:50 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-23 22:10:50 +0000
commitc397545cd83a2dc38e44c67822446cedb386d663 (patch)
treed5ef58ad96fc084c88e38c21452e68bb66cb6467 /src/modules/m_spanningtree.cpp
parentb860407e9607fd34affb4a4f86e9ecdad5a5201d (diff)
Fix #176, not sure how channel can't exist after being created, but apparantly it can happen
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5789 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 34f85d51e..9138e7ff1 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1810,7 +1810,8 @@ class TreeSocket : public InspSocket
{
/* find created channel .. */
chan = this->Instance->FindChan(channel);
- chan->age = TS;
+ if (chan) /* shouldn't be needed, seems it is */
+ chan->age = TS;
}
/* All done. That wasnt so bad was it, you can wipe