summaryrefslogtreecommitdiff
path: root/modules/core/os_akill.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_akill.cpp
parentec5fa9e63e54fc9eaef5d4b5d6b31bdcf7161031 (diff)
Fixed bug #1200
Diffstat (limited to 'modules/core/os_akill.cpp')
-rw-r--r--modules/core/os_akill.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/core/os_akill.cpp b/modules/core/os_akill.cpp
index 858b71bc1..973aaecda 100644
--- a/modules/core/os_akill.cpp
+++ b/modules/core/os_akill.cpp
@@ -34,6 +34,9 @@ class AkillDelCallback : public NumberList
void HandleNumber(unsigned Number)
{
+ if (!Number)
+ return;
+
XLine *x = SGLine->GetEntry(Number - 1);
if (!x)
@@ -69,6 +72,9 @@ class AkillListCallback : public NumberList
void HandleNumber(unsigned Number)
{
+ if (!Number)
+ return;
+
XLine *x = SGLine->GetEntry(Number - 1);
if (!x)
@@ -98,6 +104,9 @@ class AkillViewCallback : public AkillListCallback
void HandleNumber(unsigned Number)
{
+ if (!Number)
+ return;
+
XLine *x = SGLine->GetEntry(Number - 1);
if (!x)