comparison mcabber/src/hooks.c @ 536:56f641155579

Status change was not displayed when same status but message removed
author Mikael Berthe <mikael@lilotux.net>
date Fri, 25 Nov 2005 23:04:20 +0100
parents 05c0e55c4bb1
children 87165382e4ce
comparison
equal deleted inserted replaced
535:b407d19c39ab 536:56f641155579
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 */