summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
-rw-r--r--src/protocol/charybdis.c17
2 files changed, 13 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index aee7a0520..dca9011d9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -602,7 +602,7 @@ int main(int ac, char **av, char **envp)
socket stuff -Certus */
i = (int) (long) sgets2(inbuf, sizeof(inbuf), servsock);
waiting = 0;
- if ((i>0) || (i<(-1))) {
+ if ((i > 0) || (i < (-1))) {
process();
} else if (i == 0) {
int errno_save = errno;
diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c
index 4d879a3a0..3e210797e 100644
--- a/src/protocol/charybdis.c
+++ b/src/protocol/charybdis.c
@@ -1803,8 +1803,8 @@ int charybdis_send_account(int argc, char **argv)
return MOD_CONT;
}
-#if 0
/* XXX: We need a hook on /ns logout before this is useful! --nenolod */
+/* We have one now! -GD */
int charybdis_send_deaccount(int argc, char **argv)
{
send_cmd((UseTS6 ? TS6SID : ServerName), "ENCAP * SU %s",
@@ -1812,7 +1812,6 @@ int charybdis_send_deaccount(int argc, char **argv)
return MOD_CONT;
}
-#endif
/**
* Tell anope which function we want to perform each task inside of anope.
@@ -1914,7 +1913,7 @@ int AnopeInit(int argc, char **argv)
pmodule_ircd_cbmodes(myCbmodes);
pmodule_ircd_cmmodes(myCmmodes);
pmodule_ircd_csmodes(myCsmodes);
- pmodule_ircd_useTSMode(0);
+ pmodule_ircd_useTSMode(1);
/** Deal with modes anope _needs_ to know **/
pmodule_invis_umode(UMODE_i);
@@ -1934,11 +1933,19 @@ int AnopeInit(int argc, char **argv)
hk = createEventHook(EVENT_NICK_REGISTERED, charybdis_send_account);
moduleAddEventHook(hk);
-#if 0
/* XXX: It'd be nice if we could have an event like this, but it's not there yet :( */
+ /* It's there now! Trystan said so! -GD */
hk = createEventHook(EVENT_NICK_LOGOUT, charybdis_send_deaccount);
moduleAddEventHook(hk);
-#endif
return MOD_CONT;
}
+
+/* Clean up allocated things in here */
+void AnopeFini(void)
+{
+ if (UseTS6)
+ free(TS6SID);
+}
+
+/* EOF */