summaryrefslogtreecommitdiff
path: root/src/ptlink.c
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-03 03:58:43 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-03 03:58:43 +0000
commit04afc8548091ab4a5ee405dbe40c5ad1ab9f5d98 (patch)
tree61d5157b8f6f1cc9bfa202dc13ab155702f652b9 /src/ptlink.c
parent7bc5f4a8ed453f1e6922e71a7066f02c8ffc7484 (diff)
BUILD : 1.7.5 (365) BUGS : 172 NOTES : - New directive NewsCount - fr.l updated - do_memocheck() globalized the time display - getmemoinfo() improved to return info about being forbidden - fixes svsnick on Unreal - anope_event_null to allow ircd devs to point events that go to no where some where - fixed SQUIT
git-svn-id: svn://svn.anope.org/anope/trunk@365 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@236 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/ptlink.c')
-rw-r--r--src/ptlink.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/ptlink.c b/src/ptlink.c
index 7000988ed..fe625054f 100644
--- a/src/ptlink.c
+++ b/src/ptlink.c
@@ -128,7 +128,7 @@ IRCDCAPAB ircdcap[] = {
0, /* TLKEXT */
0, /* DODKEY */
0, /* DOZIP */
- 0}
+ 0, 0}
};
@@ -544,7 +544,7 @@ void moduleAddIRCDMsgs(void) {
m = createMessage("REHASH", anope_event_rehash); addCoreMessage(IRCD,m);
m = createMessage("ADMIN", anope_event_admin); addCoreMessage(IRCD,m);
m = createMessage("CREDITS", anope_event_credits); addCoreMessage(IRCD,m);
-
+ m = createMessage("ERROR", anope_event_error); addCoreMessage(IRCD,m);
}
/* *INDENT-ON* */
@@ -684,10 +684,19 @@ void anope_cmd_svsmode(User * u, int ac, char **av)
(ac == 2 ? " " : ""), (ac == 2 ? av[1] : ""));
}
+int anope_event_error(char *source, int ac, char **av)
+{
+ if (ac >= 1) {
+ if (debug) {
+ alog("ERROR: %s", av[0]);
+ }
+ }
+ return MOD_CONT;
+}
void anope_cmd_squit(char *servname, char *message)
{
- send_cmd(servname, "SQUIT %s :%s", servname, message);
+ send_cmd(NULL, "SQUIT %s :%s", servname, message);
}
/* PONG */