diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 17:31:26 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 17:31:26 +0000 |
commit | 143ccccbb6d2e86e819bdb41f7021a353f5a72c9 (patch) | |
tree | c7baac95b922aeb434df76975e9c5c1a1a53514d | |
parent | e5051e4aa5cfc9e80ac965a6a82e4cab8d17387c (diff) |
Replaced anope_SendSVSNOOP() with direct call to SendSVSNOOP() in IRCDProto class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1321 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | include/extern.h | 1 | ||||
-rw-r--r-- | src/core/os_noop.c | 8 | ||||
-rw-r--r-- | src/ircd.c | 5 |
3 files changed, 4 insertions, 10 deletions
diff --git a/include/extern.h b/include/extern.h index 945ca249e..80b7cbbe5 100644 --- a/include/extern.h +++ b/include/extern.h @@ -1162,7 +1162,6 @@ E void anope_SendSVSKill(const char *source, const char *user, const char *fmt, E void anope_SendSVSMode(User * u, int ac, const char **av); /* SVSMODE */ 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_SendSVSNOOP(const char *server, int set); /* SVSNOOP */ 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 */ diff --git a/src/core/os_noop.c b/src/core/os_noop.c index ec2f71e71..e406065d2 100644 --- a/src/core/os_noop.c +++ b/src/core/os_noop.c @@ -6,8 +6,8 @@ * Please read COPYING and README for further details. * * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. - * + * Based on the original code of Services by Andy Church. + * * $Id$ * */ @@ -79,7 +79,7 @@ int do_noop(User * u) char reason[NICKMAX + 32]; /* Remove the O:lines */ - anope_SendSVSNOOP(server, 1); + ircdproto->SendSVSNOOP(server, 1); snprintf(reason, sizeof(reason), "NOOP command used by %s", u->nick); @@ -97,7 +97,7 @@ int do_noop(User * u) } } } else if (!stricmp(cmd, "REVOKE")) { - anope_SendSVSNOOP(server, 0); + ircdproto->SendSVSNOOP(server, 0); notice_lang(s_OperServ, u, OPER_NOOP_REVOKE, server); } else { syntax_error(s_OperServ, u, "NOOP", OPER_NOOP_SYNTAX); diff --git a/src/ircd.c b/src/ircd.c index 8b7bbae13..be919f0fd 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_SendSVSNOOP(const char *server, int set) -{ - ircdproto->SendSVSNOOP(server, set); -} - void anope_SendAkillDel(const char *user, const char *host) { ircdproto->SendAkillDel(user, host); |