summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-16 01:26:47 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-16 01:26:47 +0000
commit1d45a53fa2344ae65587b54889b3d5a9300e1213 (patch)
treed47f4c2e9925e09172c74140d672948c64379ac4 /include
parent61f2ce9a41acc6016b24da58005f9b779017d7d2 (diff)
Remove UseTS6. This is now on or off at an ircd, not a config level. Move Chary to obsolete for now, it's identical to ratbox anyway in most regards, and it's getting annoying having to redo the same work twice..
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1740 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r--include/extern.h3
-rw-r--r--include/services.h24
2 files changed, 13 insertions, 14 deletions
diff --git a/include/extern.h b/include/extern.h
index b0cf79390..325625916 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -300,10 +300,9 @@ E bool UseStrictPrivMsg;
E bool DumpCore;
E bool LogUsers;
E int NickRegDelay;
-E int RestrictOperNicks;
+E bool RestrictOperNicks;
E int NewsCount;
E char *Numeric;
-E int UseTS6;
E char **HostSetters;
E int HostNumber;
diff --git a/include/services.h b/include/services.h
index af5b524c5..ba04d873a 100644
--- a/include/services.h
+++ b/include/services.h
@@ -1273,38 +1273,38 @@ private:
}
virtual void SendNoticeInternal(BotInfo *bi, const char *dest, const char *msg)
{
- send_cmd(UseTS6 ? bi->uid : bi->nick, "NOTICE %s :%s", dest, msg);
+ send_cmd(ircd->ts6 ? bi->uid : bi->nick, "NOTICE %s :%s", dest, msg);
}
virtual void SendPrivmsgInternal(BotInfo *bi, const char *dest, const char *buf)
{
- send_cmd(UseTS6 ? bi->uid : bi->nick, "PRIVMSG %s :%s", dest, buf);
+ send_cmd(ircd->ts6 ? bi->uid : bi->nick, "PRIVMSG %s :%s", dest, buf);
}
virtual void SendQuitInternal(BotInfo *bi, const char *buf)
{
if (buf)
- send_cmd(UseTS6 ? bi->uid : bi->nick, "QUIT :%s", buf);
+ send_cmd(ircd->ts6 ? bi->uid : bi->nick, "QUIT :%s", buf);
else
- send_cmd(UseTS6 ? bi->uid : bi->nick, "QUIT");
+ send_cmd(ircd->ts6 ? bi->uid : bi->nick, "QUIT");
}
virtual void SendPartInternal(BotInfo *bi, const char *chan, const char *buf)
{
if (buf)
- send_cmd(UseTS6 ? bi->uid : bi->nick, "PART %s :%s", chan, buf);
+ send_cmd(ircd->ts6 ? bi->uid : bi->nick, "PART %s :%s", chan, buf);
else
- send_cmd(UseTS6 ? bi->uid : bi->nick, "PART %s", chan);
+ send_cmd(ircd->ts6 ? bi->uid : bi->nick, "PART %s", chan);
}
virtual void SendGlobopsInternal(const char *source, const char *buf)
{
BotInfo *bi = findbot(source);
if (bi)
- send_cmd(UseTS6 ? bi->uid : bi->nick, "GLOBOPS :%s", buf);
+ send_cmd(ircd->ts6 ? bi->uid : bi->nick, "GLOBOPS :%s", buf);
else
send_cmd(ServerName, "GLOBOPS :%s", buf);
}
virtual void SendCTCPInternal(BotInfo *bi, const char *dest, const char *buf)
{
char *s = normalizeBuffer(buf);
- send_cmd(UseTS6 ? bi->uid : bi->nick, "NOTICE %s :\1%s\1", dest, s);
+ send_cmd(ircd->ts6 ? bi->uid : bi->nick, "NOTICE %s :\1%s\1", dest, s);
free(s);
}
virtual void SendNumericInternal(const char *source, int numeric, const char *dest, const char *buf)
@@ -1397,11 +1397,11 @@ private:
}
virtual void SendGlobalNotice(BotInfo *bi, const char *dest, const char *msg)
{
- send_cmd(UseTS6 ? bi->uid : bi->nick, "NOTICE %s%s :%s", ircd->globaltldprefix, dest, msg);
+ send_cmd(ircd->ts6 ? bi->uid : bi->nick, "NOTICE %s%s :%s", ircd->globaltldprefix, dest, msg);
}
virtual void SendGlobalPrivmsg(BotInfo *bi, const char *dest, const char *msg)
{
- send_cmd(UseTS6 ? bi->uid : bi->nick, "PRIVMSG %s%s :%s", ircd->globaltldprefix, dest, msg);
+ send_cmd(ircd->ts6 ? bi->uid : bi->nick, "PRIVMSG %s%s :%s", ircd->globaltldprefix, dest, msg);
}
virtual void SendBotOp(const char *, const char *) = 0;
@@ -1431,7 +1431,7 @@ private:
virtual void SendSQLineDel(const char *) = 0;
virtual void SendInvite(BotInfo *bi, const char *chan, const char *nick)
{
- send_cmd(UseTS6 ? bi->uid : bi->nick, "INVITE %s %s", nick, chan);
+ send_cmd(ircd->ts6 ? bi->uid : bi->nick, "INVITE %s %s", nick, chan);
}
virtual void SendPart(BotInfo *bi, const char *chan, const char *fmt, ...)
{
@@ -1462,7 +1462,7 @@ private:
virtual void SendSVSO(const char *, const char *, const char *) { }
virtual void SendChangeBotNick(BotInfo *bi, const char *newnick)
{
- send_cmd(UseTS6 ? bi->uid : bi->nick, "NICK %s", newnick);
+ send_cmd(ircd->ts6 ? bi->uid : bi->nick, "NICK %s", newnick);
}
virtual void SendForceNickChange(const char *oldnick, const char *newnick, time_t when)
{