equal
deleted
inserted
replaced
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 /* |