summaryrefslogtreecommitdiff
path: root/src/protocol/viagra.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:09 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:09 +0000
commit8d3d1775aeec744d54b3acfacc01cc70eadb44be (patch)
tree705674939690af9afa2b2258bb15ad0b3064e95d /src/protocol/viagra.c
parentc037e6a6e9f71f7209cda0342dcb0e9c332b6804 (diff)
Core skeleton of IRCDProtoNew class created.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1195 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/viagra.c')
-rw-r--r--src/protocol/viagra.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/protocol/viagra.c b/src/protocol/viagra.c
index 8638204b7..2615c57b8 100644
--- a/src/protocol/viagra.c
+++ b/src/protocol/viagra.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$
*
*/
@@ -674,7 +674,7 @@ void moduleAddIRCDMsgs(void) {
Message *m;
updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+a","-a");
-
+
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("402", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("436", anope_event_436); addCoreMessage(IRCD,m);
@@ -1560,7 +1560,7 @@ void viagra_cmd_global_legacy(char *source, char *fmt)
send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
}
-/*
+/*
1 = valid nick
0 = nick is in valid
*/
@@ -1570,7 +1570,7 @@ int viagra_valid_nick(char *nick)
return 1;
}
-/*
+/*
1 = valid chan
0 = chan is in valid
*/
@@ -1678,7 +1678,7 @@ void moduleAddAnopeCmds()
pmodule_set_umode(viagra_set_umode);
}
-/**
+/**
* Now tell anope how to use us.
**/
int AnopeInit(int argc, char **argv)
@@ -1710,6 +1710,7 @@ int AnopeInit(int argc, char **argv)
pmodule_limit_mode(CMODE_l);
moduleAddAnopeCmds();
+ pmodule_ircd_proto(&ircd_proto);
moduleAddIRCDMsgs();
return MOD_CONT;