diff options
| author | Adam <Adam@anope.org> | 2011-08-13 21:59:12 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-08-13 21:59:12 -0400 |
| commit | 389341b86230b8945f890199b8bf74ac3825347d (patch) | |
| tree | 46f470a6b42b746f4a51e8b9ec757e0755d487a4 /modules/core | |
| parent | 949f86908a1355dd8146957f15b669e0338b1080 (diff) | |
Fixed number list position when requesting custom lists from akill and sqline
Diffstat (limited to 'modules/core')
| -rw-r--r-- | modules/core/os_akill.cpp | 4 | ||||
| -rw-r--r-- | modules/core/os_sqline.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/core/os_akill.cpp b/modules/core/os_akill.cpp index a616695ce..25fc09791 100644 --- a/modules/core/os_akill.cpp +++ b/modules/core/os_akill.cpp @@ -87,7 +87,7 @@ class AkillListCallback : public NumberList " Num Mask Reason")); } - DoList(source, x, Number); + DoList(source, x, Number - 1); } static void DoList(CommandSource &source, XLine *x, unsigned Number) @@ -119,7 +119,7 @@ class AkillViewCallback : public AkillListCallback source.Reply(_("Current AKILL list:")); } - DoList(source, x, Number); + DoList(source, x, Number - 1); } static void DoList(CommandSource &source, XLine *x, unsigned Number) diff --git a/modules/core/os_sqline.cpp b/modules/core/os_sqline.cpp index 85c42ec4c..e4209e541 100644 --- a/modules/core/os_sqline.cpp +++ b/modules/core/os_sqline.cpp @@ -116,7 +116,7 @@ class SQLineViewCallback : public SQLineListCallback source.Reply(_("Current SQLINE list:")); } - DoList(source, x, Number); + DoList(source, x, Number - 1); } static void DoList(CommandSource &source, XLine *x, unsigned Number) |
