diff options
author | Adam <Adam@anope.org> | 2013-02-22 21:56:33 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-02-23 04:32:41 -0500 |
commit | c67087d750ad712779f7615ca0274a01ce475193 (patch) | |
tree | 115a01e460748c62d3bb593aa091418df11e9bd6 /modules/commands/cs_akick.cpp | |
parent | 2336b4723c484bd1d4307c24f8f0b16de18e502c (diff) |
Fix akick list/view not showing masks sometimes
Diffstat (limited to 'modules/commands/cs_akick.cpp')
-rw-r--r-- | modules/commands/cs_akick.cpp | 10 |
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; |