diff options
author | Adam <Adam@anope.org> | 2016-12-01 09:52:46 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-12-01 09:52:46 -0500 |
commit | 9a87674a95cf8153e343d89ec1a686fc43781a3c (patch) | |
tree | b1947fd3a0529adcb16615d4f40b9206691e4e3e /modules/chanserv/info.cpp | |
parent | ca28f9cfcbff0fbdb2afe96f1427245f83db7c47 (diff) |
chanserv/info: show bantype format
Diffstat (limited to 'modules/chanserv/info.cpp')
-rw-r--r-- | modules/chanserv/info.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/modules/chanserv/info.cpp b/modules/chanserv/info.cpp index 43807fb4b..5f625b317 100644 --- a/modules/chanserv/info.cpp +++ b/modules/chanserv/info.cpp @@ -66,7 +66,21 @@ class CommandCSInfo : public Command if (show_all) { - info[_("Ban type")] = stringify(ci->GetBanType()); + switch (ci->GetBanType()) + { + case 0: + info[_("Ban type")] = stringify("0: *!user@host"); + break; + case 1: + info[_("Ban type")] = stringify("1: *!*user@host"); + break; + case 2: + info[_("Ban type")] = stringify("2: *!*@host"); + break; + case 3: + info[_("Ban type")] = stringify("3: *!*user@*.domain"); + break; + } } EventManager::Get()->Dispatch(&Event::ChanInfo::OnChanInfo, source, ci, info, show_all); |