Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/hooks.c @ 458:33dc3ca6e9ca
Do not call external command for history lines in a MUC room
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 27 Sep 2005 21:59:07 +0200 |
parents | 39e173645f9c |
children | 644b8bf9ca4d |
comparison
equal
deleted
inserted
replaced
457:2fd528c49173 | 458:33dc3ca6e9ca |
---|---|
78 // XXX We could use an option here to know if we should write GC messages... | 78 // XXX We could use an option here to know if we should write GC messages... |
79 if (!is_groupchat && !(message_flags & HBB_PREFIX_ERR)) | 79 if (!is_groupchat && !(message_flags & HBB_PREFIX_ERR)) |
80 hlog_write_message(jid, timestamp, FALSE, wmsg); | 80 hlog_write_message(jid, timestamp, FALSE, wmsg); |
81 | 81 |
82 // External command | 82 // External command |
83 // XXX We should avoid calling the function for history lines in MUC | 83 // (We do not call hk_ext_cmd() for history lines in MUC) |
84 hk_ext_cmd(jid, (is_groupchat ? 'G' : 'M'), 'R', NULL); | 84 if (!is_groupchat || !timestamp) |
85 hk_ext_cmd(jid, (is_groupchat ? 'G' : 'M'), 'R', NULL); | |
85 | 86 |
86 // We need to rebuild the list if the sender is unknown or | 87 // We need to rebuild the list if the sender is unknown or |
87 // if the sender is offline/invisible and hide_offline_buddies is set | 88 // if the sender is offline/invisible and hide_offline_buddies is set |
88 if (new_guy || | 89 if (new_guy || |
89 (roster_getstatus(jid, NULL) == offline && | 90 (roster_getstatus(jid, NULL) == offline && |