195 hlog_write_status(jid, 0, status, status_msg); |
195 hlog_write_status(jid, 0, status, status_msg); |
196 // External command |
196 // External command |
197 hk_ext_cmd(jid, 'S', imstatus2char[status], NULL); |
197 hk_ext_cmd(jid, 'S', imstatus2char[status], NULL); |
198 } |
198 } |
199 |
199 |
200 inline void hk_mystatuschange(time_t timestamp, |
200 inline void hk_mystatuschange(time_t timestamp, enum imstatus old_status, |
201 enum imstatus old_status, enum imstatus new_status, const char *msg) |
201 enum imstatus new_status, const char *msg) |
202 { |
202 { |
203 if (!msg && (old_status == new_status)) |
203 if (old_status == new_status) |
204 return; |
204 return; |
205 |
205 |
206 scr_LogPrint(LPRINT_LOGNORM, "Your status has changed: [%c>%c] %s", |
206 scr_LogPrint(LPRINT_LOGNORM, "Your status has changed: [%c>%c] %s", |
207 imstatus2char[old_status], imstatus2char[new_status], |
207 imstatus2char[old_status], imstatus2char[new_status], |
208 ((msg) ? msg : "")); |
208 (msg ? msg : "")); |
209 //hlog_write_status(NULL, 0, status); |
209 //hlog_write_status(NULL, 0, status); |
210 } |
210 } |
211 |
211 |
212 |
212 |
213 /* External commands */ |
213 /* External commands */ |