comparison mcabber/src/histolog.c @ 221:73f6ce668ba8

[/trunk] Changeset 233 by mikael * /info now displays the current status message
author mikael
date Sat, 04 Jun 2005 12:47:13 +0000
parents c289e3c39c48
children 8584f919d9b9
comparison
equal deleted inserted replaced
220:8dfdc6f1778e 221:73f6ce668ba8
236 { 236 {
237 write_histo_line(jid, timestamp, 'M', ((sent) ? 'S' : 'R'), msg); 237 write_histo_line(jid, timestamp, 'M', ((sent) ? 'S' : 'R'), msg);
238 } 238 }
239 239
240 inline void hlog_write_status(const char *jid, time_t timestamp, 240 inline void hlog_write_status(const char *jid, time_t timestamp,
241 enum imstatus status) 241 enum imstatus status, const char *status_msg)
242 { 242 {
243 // #1 XXX Check status value? 243 // #1 XXX Check status value?
244 // #2 We could add a user-readable comment 244 // #2 We could add a user-readable comment
245 write_histo_line(jid, timestamp, 'S', toupper(imstatus2char[status]), 245 write_histo_line(jid, timestamp, 'S', toupper(imstatus2char[status]),
246 NULL); 246 status_msg);
247 } 247 }
248 248