From c67087d750ad712779f7615ca0274a01ce475193 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 22 Feb 2013 21:56:33 -0500 Subject: Fix akick list/view not showing masks sometimes --- modules/commands/cs_akick.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'modules/commands/cs_akick.cpp') 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; -- cgit