summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-24 00:39:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-24 00:39:53 +0000
commit22fdb2f3465b657250813cbd5453efd7e52f2777 (patch)
tree49e305c6e0df56be0c07ecd78420bbffae7bcf13
parent3382adb9e9a79748b4db09bb41a296861800fa2d (diff)
Check for missing comma in FJOIN element
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5008 e03df62e-2008-0410-955e-edbf42e46eb7
-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 967ef73ea..14d2ee61d 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1393,7 +1393,7 @@ class TreeSocket : public InspSocket
if (usr && *usr)
{
char* permissions = usr;
- while (*permissions != ',')
+ while ((*permissions) && (*permissions != ','))
{
ModeHandler* mh = ServerInstance->Modes->FindPrefix(*permissions);
if (mh)