summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 08:45:43 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 08:45:43 +0000
commit55bf54a30532cfeff5bb813617d013761212a64b (patch)
tree42c7d74a507e4ada55fb16c44805fec3a3ba7dfb /src/core
parent809ed7c2c04f2c004be3f8f7d29ff3b4f0e3e0f7 (diff)
Various conversions to use new protocol.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1307 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
-rw-r--r--src/core/bs_bot.c4
-rw-r--r--src/core/cs_forbid.c2
-rw-r--r--src/core/hs_on.c2
-rw-r--r--src/core/ns_forbid.c2
-rw-r--r--src/core/os_oline.c4
-rw-r--r--src/core/os_svsnick.c2
6 files changed, 8 insertions, 8 deletions
diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c
index eba82f5f9..6fc34a6bb 100644
--- a/src/core/bs_bot.c
+++ b/src/core/bs_bot.c
@@ -294,8 +294,8 @@ int do_bot(User * u)
else we must make it quit and rejoin. We must not forget to set
the Q:Line either (it's otherwise set in anope_SendClientIntroduction) */
if (!user) {
- anope_cmd_chg_nick(oldnick, bi->nick);
- anope_cmd_sqline(bi->nick, "Reserved for services");
+ anope_SendChangeBotNick(oldnick, bi->nick);
+ anope_SendSQLine(bi->nick, "Reserved for services");
} else {
anope_SendQuit(oldnick, "Quit: Be right back");
diff --git a/src/core/cs_forbid.c b/src/core/cs_forbid.c
index 599f51605..19f0202dc 100644
--- a/src/core/cs_forbid.c
+++ b/src/core/cs_forbid.c
@@ -123,7 +123,7 @@ int do_forbid(User * u)
u->nick, ci->name);
if (ircd->chansqline) {
- anope_cmd_sqline(ci->name, ((reason) ? reason : "Forbidden"));
+ anope_SendSQLine(ci->name, ((reason) ? reason : "Forbidden"));
}
alog("%s: %s set FORBID for channel %s", s_ChanServ, u->nick,
diff --git a/src/core/hs_on.c b/src/core/hs_on.c
index 6ff31d0a7..0d71ee768 100644
--- a/src/core/hs_on.c
+++ b/src/core/hs_on.c
@@ -82,7 +82,7 @@ int do_on(User * u)
} else {
notice_lang(s_HostServ, u, HOST_ACTIVATED, vHost);
}
- anope_cmd_vhost_on(u->nick, vIdent, vHost);
+ anope_SendVhost(u->nick, vIdent, vHost);
if (ircd->vhost) {
u->vhost = sstrdup(vHost);
}
diff --git a/src/core/ns_forbid.c b/src/core/ns_forbid.c
index ce26af71e..a2f68c911 100644
--- a/src/core/ns_forbid.c
+++ b/src/core/ns_forbid.c
@@ -115,7 +115,7 @@ int do_forbid(User * u)
if (ircd->sqline) {
- anope_cmd_sqline(na->nick, ((reason) ? reason : "Forbidden"));
+ anope_SendSQLine(na->nick, ((reason) ? reason : "Forbidden"));
}
if (WallForbid)
diff --git a/src/core/os_oline.c b/src/core/os_oline.c
index 8a9adb9c9..7b3d2fbc5 100644
--- a/src/core/os_oline.c
+++ b/src/core/os_oline.c
@@ -89,7 +89,7 @@ int do_operoline(User * u)
if (!(u2 = finduser(nick))) {
notice_lang(s_OperServ, u, NICK_X_NOT_IN_USE, nick);
} else if (u2 && flags[0] == '+') {
- anope_cmd_svso(s_OperServ, nick, flags);
+ anope_SendSVSO(s_OperServ, nick, flags);
anope_SendMode(s_OperServ, nick, "+o");
common_svsmode(u2, "+o", NULL);
notice_lang(s_OperServ, u2, OPER_OLINE_IRCOP);
@@ -97,7 +97,7 @@ int do_operoline(User * u)
anope_SendGlobops(s_OperServ, "\2%s\2 used OLINE for %s",
u->nick, nick);
} else if (u2 && flags[0] == '-') {
- anope_cmd_svso(s_OperServ, nick, flags);
+ anope_SendSVSO(s_OperServ, nick, flags);
notice_lang(s_OperServ, u, OPER_OLINE_SUCCESS, flags, nick);
anope_SendGlobops(s_OperServ, "\2%s\2 used OLINE for %s",
u->nick, nick);
diff --git a/src/core/os_svsnick.c b/src/core/os_svsnick.c
index b6c269fa6..ea44bc1b0 100644
--- a/src/core/os_svsnick.c
+++ b/src/core/os_svsnick.c
@@ -119,7 +119,7 @@ int do_svsnick(User * u)
notice_lang(s_OperServ, u, OPER_SVSNICK_NEWNICK, nick, newnick);
anope_SendGlobops(s_OperServ, "%s used SVSNICK to change %s to %s",
u->nick, nick, newnick);
- anope_cmd_svsnick(nick, newnick, time(NULL));
+ anope_SendForceNickChange(nick, newnick, time(NULL));
}
return MOD_CONT;
}