1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 05:03:11 +02:00

Massive move of all of the Config variables out of global scope to the Config class

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2674 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2009-11-28 23:02:07 +00:00
parent f6b823ade8
commit a08b3ec592
157 changed files with 3490 additions and 3535 deletions
+4 -4
View File
@@ -2,7 +2,7 @@
void IRCDProto::SendMessageInternal(BotInfo *bi, const char *dest, const char *buf)
{
if (NSDefFlags.HasFlag(NI_MSG))
if (Config.NSDefFlags.HasFlag(NI_MSG))
SendPrivmsgInternal(bi, dest, buf);
else
SendNoticeInternal(bi, dest, buf);
@@ -40,7 +40,7 @@ void IRCDProto::SendGlobopsInternal(const char *source, const char *buf)
if (bi)
send_cmd(ircd->ts6 ? bi->uid : bi->nick, "GLOBOPS :%s", buf);
else
send_cmd(ServerName, "GLOBOPS :%s", buf);
send_cmd(Config.ServerName, "GLOBOPS :%s", buf);
}
void IRCDProto::SendCTCPInternal(BotInfo *bi, const char *dest, const char *buf)
@@ -170,9 +170,9 @@ void IRCDProto::SendQuit(BotInfo *bi, const char *fmt, ...)
void IRCDProto::SendPong(const char *servname, const char *who)
{
if (!servname)
send_cmd(ircd->ts6 ? TS6SID : ServerName, "PONG %s", who);
send_cmd(ircd->ts6 ? TS6SID : Config.ServerName, "PONG %s", who);
else
send_cmd(ircd->ts6 ? TS6SID : ServerName, "PONG %s %s", servname, who);
send_cmd(ircd->ts6 ? TS6SID : Config.ServerName, "PONG %s %s", servname, who);
}
void IRCDProto::SendInvite(BotInfo *bi, const char *chan, const char *nick)