summaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-28 23:02:07 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-28 23:02:07 +0000
commita08b3ec5924c946308ac086cd3ee7d701610d3be (patch)
tree84da442a85ffeccd6425cc7c85db9eda6e881753 /src/protocol.cpp
parentf6b823ade85160f94544d1ad1de4d8fbc42b2712 (diff)
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
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index 26fc18779..cf47bb61d 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -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)