Mercurial > hg
comparison mcabber/src/hooks.c @ 118:1e8f646e2c5b
[/trunk] Changeset 131 by mikael
* Clean up
* Fix /status offline
* Change (slightly) history log line format
author | mikael |
---|---|
date | Mon, 25 Apr 2005 19:02:07 +0000 |
parents | 1e7e59775f12 |
children | cfd3df636d5f |
comparison
equal
deleted
inserted
replaced
117:e0168cdd9f59 | 118:1e8f646e2c5b |
---|---|
49 imstatus2char[roster_getstatus(jid)], imstatus2char[status], jid); | 49 imstatus2char[roster_getstatus(jid)], imstatus2char[status], jid); |
50 roster_setstatus(jid, status); | 50 roster_setstatus(jid, status); |
51 hlog_write_status(jid, 0, status); | 51 hlog_write_status(jid, 0, status); |
52 } | 52 } |
53 | 53 |
54 // XXX Maybe we should get the old status as a parameter and request the | |
55 // current status to jabglue? Or get both statuses? | |
56 inline void hk_mystatuschange(time_t timestamp, | 54 inline void hk_mystatuschange(time_t timestamp, |
57 enum imstatus old_status, enum imstatus new_status) | 55 enum imstatus old_status, enum imstatus new_status) |
58 { | 56 { |
59 if (old_status == new_status) | 57 if (old_status == new_status) |
60 return; | 58 return; |
61 | 59 |
62 scr_LogPrint("Your status has changed: [%c>%c]", | 60 scr_LogPrint("Your status has changed: [%c>%c]", |
63 imstatus2char[old_status], imstatus2char[new_status]); | 61 imstatus2char[old_status], imstatus2char[new_status]); |
64 //roster_setstatus(jid, status); | |
65 //hlog_write_status(NULL, 0, status); | 62 //hlog_write_status(NULL, 0, status); |
66 | |
67 } | 63 } |
68 | 64 |