mirror of
https://github.com/anope/anope.git
synced 2026-06-26 12:16:38 +02:00
Rewrote the config reader to better handle invalid configs.
This prevents Anope from exploding when /os reload has errors.
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ void notice_server(const Anope::string &source, const Server *s, const char *fmt
|
||||
va_start(args, fmt);
|
||||
vsnprintf(buf, BUFSIZE - 1, fmt, args);
|
||||
|
||||
if (Config.NSDefFlags.HasFlag(NI_MSG))
|
||||
if (Config->NSDefFlags.HasFlag(NI_MSG))
|
||||
ircdproto->SendGlobalPrivmsg(findbot(source), s, buf);
|
||||
else
|
||||
ircdproto->SendGlobalNotice(findbot(source), s, buf);
|
||||
|
||||
Reference in New Issue
Block a user