diff options
Diffstat (limited to 'src/modules/m_nonotice.cpp')
-rw-r--r-- | src/modules/m_nonotice.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_nonotice.cpp b/src/modules/m_nonotice.cpp index 6d8e8a401..b346553b6 100644 --- a/src/modules/m_nonotice.cpp +++ b/src/modules/m_nonotice.cpp @@ -69,7 +69,8 @@ class ModuleNoNotice : public Module } temp2 = temp2 + temp1 + " "; } - output = temp2.substr(0,temp2.length()-1); + if (temp2.length()) + output = temp2.substr(0,temp2.length()-1); } virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms) |