summaryrefslogtreecommitdiff
path: root/modules/commands/cs_akick.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-02-22 21:56:33 -0500
committerAdam <Adam@anope.org>2013-02-23 04:32:41 -0500
commitc67087d750ad712779f7615ca0274a01ce475193 (patch)
tree115a01e460748c62d3bb593aa091418df11e9bd6 /modules/commands/cs_akick.cpp
parent2336b4723c484bd1d4307c24f8f0b16de18e502c (diff)
Fix akick list/view not showing masks sometimes
Diffstat (limited to 'modules/commands/cs_akick.cpp')
-rw-r--r--modules/commands/cs_akick.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/commands/cs_akick.cpp b/modules/commands/cs_akick.cpp
index 3eea49097..dea6446ba 100644
--- a/modules/commands/cs_akick.cpp
+++ b/modules/commands/cs_akick.cpp
@@ -279,7 +279,10 @@ class CommandCSAKick : public Command
ListFormatter::ListEntry entry;
entry["Number"] = stringify(number);
- entry["Mask"] = akick->mask;
+ if (akick->nc)
+ entry["Mask"] = akick->nc->display;
+ else
+ entry["Mask"] = akick->mask;
entry["Creator"] = akick->creator;
entry["Created"] = timebuf;
entry["Last used"] = lastused;
@@ -316,7 +319,10 @@ class CommandCSAKick : public Command
ListFormatter::ListEntry entry;
entry["Number"] = stringify(i + 1);
- entry["Mask"] = akick->mask;
+ if (akick->nc)
+ entry["Mask"] = akick->nc->display;
+ else
+ entry["Mask"] = akick->mask;
entry["Creator"] = akick->creator;
entry["Created"] = timebuf;
entry["Last used"] = lastused;