From 31c675d3e41939810cbca555e36e67f513ec33c9 Mon Sep 17 00:00:00 2001 From: "Naram Qashat cyberbotx@cyberbotx.com" Date: Thu, 2 Oct 2008 21:26:54 +0000 Subject: [PATCH] Replaced anope_SendSVSO() with direct call to SendSVSO() in IRCDProto class. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1350 5417fbe8-f217-4b02-8779-1006273d7864 --- include/extern.h | 1 - src/core/os_oline.c | 4 ++-- src/ircd.c | 5 ----- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/include/extern.h b/include/extern.h index 18bd7b922..b9ce06845 100644 --- a/include/extern.h +++ b/include/extern.h @@ -1134,7 +1134,6 @@ E void anope_cmd_svsinfo(); /* SVSINFO */ E void anope_SendSVSJoin(const char *source, const char *nick,const char *chan, const char *param); /* SVSJOIN */ E void anope_SendSVSMode_chan(const char *name, const char *mode, const char *nick); /* SVSMODE */ E void anope_SendForceNickChange(const char *nick,const char *newnick, time_t when); /* SVSNICK */ -E void anope_SendSVSO(const char *source,const char *nick, const char *flag); /* SVSO */ E void anope_SendSVSPart(const char *source, const char *nick,const char *chan); /* SVSPART */ E void anope_SendSWhois(const char *source, const char *who, const char *mask); /* SWHOIS */ E void anope_SendSGLineDel(const char *mask); /* UNSGLINE */ diff --git a/src/core/os_oline.c b/src/core/os_oline.c index 31ecfef00..56418e231 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_SendSVSO(s_OperServ, nick, flags); + ircdproto->SendSVSO(s_OperServ, nick, flags); ircdproto->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) ircdproto->SendGlobops(s_OperServ, "\2%s\2 used OLINE for %s", u->nick, nick); } else if (u2 && flags[0] == '-') { - anope_SendSVSO(s_OperServ, nick, flags); + ircdproto->SendSVSO(s_OperServ, nick, flags); notice_lang(s_OperServ, u, OPER_OLINE_SUCCESS, flags, nick); ircdproto->SendGlobops(s_OperServ, "\2%s\2 used OLINE for %s", u->nick, nick); diff --git a/src/ircd.c b/src/ircd.c index a5341c791..ce55530cb 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -43,11 +43,6 @@ void anope_ProcessUsermodes(User *user, int ac, const char **av) ircdproto->ProcessUsermodes(user, ac, av); } -void anope_SendSVSO(const char *source, const char *nick, const char *flag) -{ - ircdproto->SendSVSO(source, nick, flag); -} - void anope_SendChangeBotNick(const char *oldnick, const char *newnick) { ircdproto->SendChangeBotNick(oldnick, newnick);