mirror of
https://github.com/anope/anope.git
synced 2026-07-08 03:03:14 +02:00
Replace convertTo/stringify with non-throwing alternatives.
Having these throw is terrible for ergonomics and there are loads of places where the exception was either silently ignored or not handled at all. Having a function which returns an optional and another that returns a default works a lot better imo.
This commit is contained in:
@@ -58,7 +58,7 @@ public:
|
||||
|
||||
if (show_all)
|
||||
{
|
||||
info[_("Ban type")] = stringify(ci->bantype);
|
||||
info[_("Ban type")] = Anope::ToString(ci->bantype);
|
||||
}
|
||||
|
||||
FOREACH_MOD(OnChanInfo, (source, ci, info, show_all));
|
||||
|
||||
Reference in New Issue
Block a user