comparison mcabber/src/jabglue.c @ 1354:c373ff3fe7e1

Add pre-disconnect internal hook
author Mikael Berthe <mikael@lilotux.net>
date Sat, 10 Nov 2007 23:15:05 +0100
parents 07816313073b
children 9716cf8a0726
comparison
equal deleted inserted replaced
1353:7caedca15e50 1354:c373ff3fe7e1
137 void jb_disconnect(void) 137 void jb_disconnect(void)
138 { 138 {
139 if (!jc) return; 139 if (!jc) return;
140 140
141 if (online) { 141 if (online) {
142 // Launch pre-disconnect internal hook
143 hook_execute_internal("hook-pre-disconnect");
142 // Announce it to everyone else 144 // Announce it to everyone else
143 jb_setstatus(offline, NULL, "", FALSE); 145 jb_setstatus(offline, NULL, "", FALSE);
144 // End the XML flow 146 // End the XML flow
145 jb_send_raw("</stream:stream>"); 147 jb_send_raw("</stream:stream>");
146 /* 148 /*