mcabber/src/jabglue.c
changeset 1354 c373ff3fe7e1
parent 1347 07816313073b
child 1355 9716cf8a0726
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     /*