Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/xmpp.c @ 1683:b09f82f61745
Split HOOK_INTERNAL
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Tue, 19 Jan 2010 16:09:27 +0200 |
parents | d1e8fb14ce2d |
children | 95df4ea512c8 |
comparison
equal
deleted
inserted
replaced
1682:d1e8fb14ce2d | 1683:b09f82f61745 |
---|---|
1775 { | 1775 { |
1776 if (!lconnection) | 1776 if (!lconnection) |
1777 return; | 1777 return; |
1778 if (lm_connection_is_authenticated(lconnection)) { | 1778 if (lm_connection_is_authenticated(lconnection)) { |
1779 // Launch pre-disconnect internal hook | 1779 // Launch pre-disconnect internal hook |
1780 hook_execute_internal("hook-pre-disconnect"); | 1780 hk_predisconnect(); |
1781 // Announce it to everyone else | 1781 // Announce it to everyone else |
1782 xmpp_setstatus(offline, NULL, "", FALSE); | 1782 xmpp_setstatus(offline, NULL, "", FALSE); |
1783 } | 1783 } |
1784 if (lm_connection_is_open(lconnection)) | 1784 if (lm_connection_is_open(lconnection)) |
1785 lm_connection_close(lconnection, NULL); | 1785 lm_connection_close(lconnection, NULL); |