diff options
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; |