equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * hooks.c -- Hooks layer |
2 * hooks.c -- Hooks layer |
3 * |
3 * |
4 * Copyright (C) 2005 Mikael Berthe <bmikael@lists.lilotux.net> |
4 * Copyright (C) 2005 Mikael Berthe <bmikael@lists.lilotux.net> |
5 * |
5 * |
6 * This program is free software; you can redistribute it and/or modify |
6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License as published by |
7 * it under the terms of the GNU General Public License as published by |
8 * the Free Software Foundation; either version 2 of the License, or (at |
8 * the Free Software Foundation; either version 2 of the License, or (at |
73 hlog_write_message(jid, timestamp, TRUE, msg); |
73 hlog_write_message(jid, timestamp, TRUE, msg); |
74 // External command |
74 // External command |
75 hk_ext_cmd(jid, 'M', 'S', NULL); |
75 hk_ext_cmd(jid, 'M', 'S', NULL); |
76 } |
76 } |
77 |
77 |
78 inline void hk_statuschange(const char *jid, time_t timestamp, |
78 inline void hk_statuschange(const char *jid, time_t timestamp, |
79 enum imstatus status, const char *status_msg) |
79 enum imstatus status, const char *status_msg) |
80 { |
80 { |
81 scr_LogPrint(LPRINT_LOGNORM, "Buddy status has changed: [%c>%c] <%s> %s", |
81 scr_LogPrint(LPRINT_LOGNORM, "Buddy status has changed: [%c>%c] <%s> %s", |
82 imstatus2char[roster_getstatus(jid)], imstatus2char[status], jid, |
82 imstatus2char[roster_getstatus(jid)], imstatus2char[status], jid, |
83 ((status_msg) ? status_msg : "")); |
83 ((status_msg) ? status_msg : "")); |