diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_conn_waitpong.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_conn_waitpong.cpp b/src/modules/m_conn_waitpong.cpp index d6694d107..71927a7f1 100644 --- a/src/modules/m_conn_waitpong.cpp +++ b/src/modules/m_conn_waitpong.cpp @@ -78,7 +78,7 @@ class ModuleWaitPong : public Module if (pingrpl) { - if (strcmp(pingrpl, parameters[0].c_str()) == 0) + if (!parameters.empty() && (strcmp(pingrpl, parameters[0].c_str()) == 0)) { delete[] pingrpl; user->Shrink(extenstr); |