Mercurial > hg
comparison mcabber/src/hooks.c @ 468:644b8bf9ca4d
Improve MUC presence messages handling
- Display messages when someone joins, leaves, or changes his nickname
- Update occupants roles and real jid (if available)
- Fix some memory leaks
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 01 Oct 2005 18:53:14 +0200 |
parents | 33dc3ca6e9ca |
children | d11e5ce2582c |
comparison
equal
deleted
inserted
replaced
467:73aa14eba3c7 | 468:644b8bf9ca4d |
---|---|
112 const char *rn = (resname ? resname : "default"); | 112 const char *rn = (resname ? resname : "default"); |
113 scr_LogPrint(LPRINT_LOGNORM, "Buddy status has changed: [%c>%c] <%s/%s> %s", | 113 scr_LogPrint(LPRINT_LOGNORM, "Buddy status has changed: [%c>%c] <%s/%s> %s", |
114 imstatus2char[roster_getstatus(jid, resname)], | 114 imstatus2char[roster_getstatus(jid, resname)], |
115 imstatus2char[status], jid, rn, | 115 imstatus2char[status], jid, rn, |
116 ((status_msg) ? status_msg : "")); | 116 ((status_msg) ? status_msg : "")); |
117 roster_setstatus(jid, rn, prio, status, status_msg); | 117 roster_setstatus(jid, rn, prio, status, status_msg, role_none, NULL); |
118 buddylist_build(); | 118 buddylist_build(); |
119 scr_DrawRoster(); | 119 scr_DrawRoster(); |
120 hlog_write_status(jid, 0, status, status_msg); | 120 hlog_write_status(jid, 0, status, status_msg); |
121 // External command | 121 // External command |
122 hk_ext_cmd(jid, 'S', imstatus2char[status], NULL); | 122 hk_ext_cmd(jid, 'S', imstatus2char[status], NULL); |