diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 19:06:00 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 19:06:00 +0000 |
commit | 552c4a47b18a3373b46512a00bfce360f30a5cea (patch) | |
tree | 3a458d3c53bfe78d63c28fe520b2dd83b9a0d11f /src/botserv.c | |
parent | 8001cc147dded5bb8acefe6cb93d6defb3f92562 (diff) |
Replaced anope_cmd_privmsg() and privmsg() with direct call to SendPrivmsg() in IRCDProto class.
Added SendPrivmsgInternal() function to IRCDProto class, now SendPrivmsg() is a stub to handle varargs.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1335 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/botserv.c')
-rw-r--r-- | src/botserv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/botserv.c b/src/botserv.c index 5705b1e27..9a476fd72 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -846,7 +846,7 @@ void bot_raw_ban(User * requester, ChannelInfo * ci, char *nick, if (ircd->protectedumode) { if (is_protected(u) && (requester != u)) { - anope_cmd_privmsg(ci->bi->nick, ci->name, "%s", + ircdproto->SendPrivmsg(ci->bi->nick, ci->name, "%s", getstring2(NULL, PERMISSION_DENIED)); return; } @@ -858,7 +858,7 @@ void bot_raw_ban(User * requester, ChannelInfo * ci, char *nick, if (ircd->except) { if (is_excepted(ci, u) == 1) { - anope_cmd_privmsg(ci->bi->nick, ci->name, "%s", + ircdproto->SendPrivmsg(ci->bi->nick, ci->name, "%s", getstring2(NULL, BOT_EXCEPT)); return; } @@ -922,7 +922,7 @@ void bot_raw_kick(User * requester, ChannelInfo * ci, char *nick, if (ircd->protectedumode) { if (is_protected(u) && (requester != u)) { - anope_cmd_privmsg(ci->bi->nick, ci->name, "%s", + ircdproto->SendPrivmsg(ci->bi->nick, ci->name, "%s", getstring2(NULL, PERMISSION_DENIED)); return; } @@ -976,7 +976,7 @@ void bot_raw_mode(User * requester, ChannelInfo * ci, char *mode, if (ircd->protectedumode) { if (is_protected(u) && *mode == '-' && (requester != u)) { - anope_cmd_privmsg(ci->bi->nick, ci->name, "%s", + ircdproto->SendPrivmsg(ci->bi->nick, ci->name, "%s", getstring2(NULL, PERMISSION_DENIED)); return; } |