summaryrefslogtreecommitdiff
path: root/include/services.h
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-01 21:20:54 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-01 21:20:54 +0000
commite46bc26a06cecb72ffe8587ec84997d89b75d852 (patch)
tree9d005b4f035494962cfbbdfd06a0fd23c9890f1e /include/services.h
parent8aa6436d7380d160d1fc2eb2235d71b57dacea17 (diff)
Merge commit 'cbx/anopeng-protocol' into anopeng
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1295 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/services.h')
-rw-r--r--include/services.h33
1 files changed, 6 insertions, 27 deletions
diff --git a/include/services.h b/include/services.h
index 8e0f49167..e63133707 100644
--- a/include/services.h
+++ b/include/services.h
@@ -1060,31 +1060,6 @@ struct session_ {
};
/*************************************************************************/
-/**
- * IRCD Protocol module support struct.
- * protocol modules register the command they want touse for function X with our set
- * functions, we then call the correct function for the anope_ commands.
- **/
-typedef struct ircd_proto_ {
- void (*ircd_cmd_372)(const char *source, const char *msg);
- void (*ircd_cmd_372_error)(const char *source);
- void (*ircd_cmd_375)(const char *source);
- void (*ircd_cmd_376)(const char *source);
- void (*ircd_cmd_351)(const char *source);
- void (*ircd_cmd_391)(const char *source, const char *timestr);
- void (*ircd_cmd_250)(const char *buf);
- void (*ircd_cmd_307)(const char *buf);
- void (*ircd_cmd_311)(const char *buf);
- void (*ircd_cmd_312)(const char *buf);
- void (*ircd_cmd_317)(const char *buf);
- void (*ircd_cmd_219)(const char *source, const char *letter);
- void (*ircd_cmd_401)(const char *source, const char *who);
- void (*ircd_cmd_318)(const char *source, const char *who);
- void (*ircd_cmd_242)(const char *buf);
- void (*ircd_cmd_243)(const char *buf);
- void (*ircd_cmd_211)(const char *buf);
-} IRCDProto;
-
typedef struct ircd_modes_ {
int user_invis;
int user_oper;
@@ -1257,11 +1232,11 @@ struct capabinfo_ {
/*************************************************************************/
-class IRCDProtoNew;
+class IRCDProto;
#include "extern.h"
-class IRCDProtoNew {
+class IRCDProto {
public:
virtual void cmd_svsnoop(const char *, int) { }
virtual void cmd_remove_akill(const char *, const char *) = 0;
@@ -1381,6 +1356,10 @@ class IRCDProtoNew {
virtual int valid_nick(const char *) { return 1; }
virtual int valid_chan(const char *) { return 1; }
virtual int flood_mode_check(const char *) { return 0; }
+ virtual void cmd_numeric(const char *source, int numeric, const char *dest, const char *buf)
+ {
+ send_cmd(source, "%03d %s %s", numeric, dest, buf);
+ }
};
/*************************************************************************/