summaryrefslogtreecommitdiff
path: root/modules/core/os_sqline.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-24 12:56:20 -0400
committerAdam <Adam@anope.org>2010-10-24 12:56:20 -0400
commitbd7b6b16ece7ca2213d38e0a12a63bf6f434434a (patch)
tree99ba4f4ec46b5977e66bc72ec5115618bfb9d712 /modules/core/os_sqline.cpp
parentec5fa9e63e54fc9eaef5d4b5d6b31bdcf7161031 (diff)
Fixed bug #1200
Diffstat (limited to 'modules/core/os_sqline.cpp')
-rw-r--r--modules/core/os_sqline.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/core/os_sqline.cpp b/modules/core/os_sqline.cpp
index 6ce51a518..e409c1bd7 100644
--- a/modules/core/os_sqline.cpp
+++ b/modules/core/os_sqline.cpp
@@ -34,6 +34,9 @@ class SQLineDelCallback : public NumberList
void HandleNumber(unsigned Number)
{
+ if (!Number)
+ return;
+
XLine *x = SQLine->GetEntry(Number - 1);
if (!x)
@@ -67,6 +70,9 @@ class SQLineListCallback : public NumberList
virtual void HandleNumber(unsigned Number)
{
+ if (!Number)
+ return;
+
XLine *x = SQLine->GetEntry(Number - 1);
if (!x)
@@ -96,6 +102,9 @@ class SQLineViewCallback : public SQLineListCallback
void HandleNumber(unsigned Number)
{
+ if (!Number)
+ return;
+
XLine *x = SQLine->GetEntry(Number - 1);
if (!x)