diff options
Diffstat (limited to 'src/modules/m_operchans.cpp')
-rw-r--r-- | src/modules/m_operchans.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp index e5eefe0cf..ed12c1c3d 100644 --- a/src/modules/m_operchans.cpp +++ b/src/modules/m_operchans.cpp @@ -74,7 +74,8 @@ class ModuleOperChans : public Module } temp2 = temp2 + temp1 + " "; } - output = temp2.substr(0,temp2.length()-1); + if (temp2.length()) + output = temp2.substr(0,temp2.length()-1); } virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) |