summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-11 00:20:17 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-11 00:20:17 +0000
commitf4cdea8348b7362076c35d9a210b786d6fd6e146 (patch)
treebae20215408418963a5efa3bddd74138c1c0ddf2 /include
parent429da2b886eba777e7262a763bb00708168ce0f0 (diff)
Revert oper protection patch from SciFi, it breaks things. This reverts commit fee057ae11daea45295744f0e9e13f1d0ce0f2b4.
Conflicts: TODO git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2004 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r--include/services.h29
1 files changed, 4 insertions, 25 deletions
diff --git a/include/services.h b/include/services.h
index 663bfaa23..370bdd02f 100644
--- a/include/services.h
+++ b/include/services.h
@@ -1309,24 +1309,14 @@ private:
virtual void SendTopic(BotInfo *, const char *, const char *, const char *, time_t) = 0;
virtual void SendVhostDel(User *) { }
virtual void SendAkill(const char *, const char *, const char *, time_t, time_t, const char *) = 0;
- virtual bool CanSVSKill(const char *source, const char *user, const char *buf)
- {
- return true;
- }
- virtual bool SendSVSKill(const char *source, const char *user, const char *fmt, ...)
+ virtual void SendSVSKill(const char *source, const char *user, const char *fmt, ...)
{
va_list args;
char buf[BUFSIZE] = "";
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
-
- if (CanSVSKill(source, user, buf))
- {
- SendSVSKillInternal(source, user, buf);
- }
-
- return false;
+ SendSVSKillInternal(source, user, buf);
}
virtual void SendSVSMode(User *, int, const char **) = 0;
virtual void SendMode(BotInfo *bi, const char *dest, const char *fmt, ...)
@@ -1339,25 +1329,14 @@ private:
SendModeInternal(bi, dest, buf);
}
virtual void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *, const char *uid) = 0;
- virtual bool CanKick(BotInfo *bi, const char *chan, const char *user, const char *buf)
- {
- return true;
- }
- virtual bool SendKick(BotInfo *bi, const char *chan, const char *user, const char *fmt, ...)
+ virtual void SendKick(BotInfo *bi, const char *chan, const char *user, const char *fmt, ...)
{
va_list args;
char buf[BUFSIZE] = "";
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
-
- if (CanKick(bi, chan, user, buf))
- {
- SendKickInternal(bi, chan, user, buf);
- return true;
- }
-
- return false;
+ SendKickInternal(bi, chan, user, buf);
}
virtual void SendNoticeChanops(BotInfo *bi, const char *dest, const char *fmt, ...)
{