comparison mcabber/src/hooks.c @ 116:1e7e59775f12

[/trunk] Changeset 130 by mikael * Add /status command. * Fix /quit command when there is a trailing word ("/quit bye"...). * Add an extension (.txt) to the TODO file.
author mikael
date Mon, 25 Apr 2005 15:26:17 +0000
parents 33bff2c57293
children 1e8f646e2c5b
comparison
equal deleted inserted replaced
115:33bff2c57293 116:1e7e59775f12
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,
57 enum imstatus old_status, enum imstatus new_status)
58 {
59 if (old_status == new_status)
60 return;
61
62 scr_LogPrint("Your status has changed: [%c>%c]",
63 imstatus2char[old_status], imstatus2char[new_status]);
64 //roster_setstatus(jid, status);
65 //hlog_write_status(NULL, 0, status);
66
67 }
68