diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 2 |
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) |