diff 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
line wrap: on
line diff
--- a/mcabber/src/hooks.c	Sun Apr 24 20:50:16 2005 +0000
+++ b/mcabber/src/hooks.c	Mon Apr 25 15:26:17 2005 +0000
@@ -51,3 +51,18 @@
   hlog_write_status(jid, 0, status);
 }
 
+// XXX Maybe we should get the old status as a parameter and request the
+// current status to jabglue?  Or get both statuses?
+inline void hk_mystatuschange(time_t timestamp,
+        enum imstatus old_status, enum imstatus new_status)
+{
+  if (old_status == new_status)
+    return;
+
+  scr_LogPrint("Your status has changed: [%c>%c]",
+          imstatus2char[old_status], imstatus2char[new_status]);
+  //roster_setstatus(jid, status);
+  //hlog_write_status(NULL, 0, status);
+
+}
+