summaryrefslogtreecommitdiff
path: root/src/modules/m_operchans.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-03 21:26:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-03 21:26:22 +0000
commit87bba3d377a99fef1e22a96a8ac403c9aad6efbd (patch)
tree6722b4f6b671e37813f2d11979ebc96019aa3d3a /src/modules/m_operchans.cpp
parentf3d1e3ce6e158aee03fb378b2ca31032c5cc7521 (diff)
More secure checking in 005 handlers
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@968 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_operchans.cpp')
-rw-r--r--src/modules/m_operchans.cpp3
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)