diff mcabber/src/commands.c @ 113:8ac67e951eab

[/trunk] Changeset 127 by mikael * Add a "hooks" layer. Hooks are used when multiples operations should be done when an event araises. For example message in/out, status change... 2 more files; Makefile updated. * Logging is ready. * Add 2 options: - "logging" (bool): enable/disable history logging - "logging_dir" (char): root dir for logging files * Document pinginterval (keepalive) in the sample config file. * Send keepalive only when online.
author mikael
date Sun, 24 Apr 2005 20:24:18 +0000
parents 7fb72bc13732
children 1e7e59775f12
line wrap: on
line diff
--- a/mcabber/src/commands.c	Sun Apr 24 17:38:48 2005 +0000
+++ b/mcabber/src/commands.c	Sun Apr 24 20:24:18 2005 +0000
@@ -26,6 +26,7 @@
 #include "roster.h"
 #include "screen.h"
 #include "compl.h"
+#include "hooks.h"
 #include "utf8.h"
 #include "utils.h"
 
@@ -139,8 +140,8 @@
     return;
   }
 
-  // UI part
-  scr_WriteOutgoingMessage(jid, msg);
+  // local part (UI, logging, etc.)
+  hk_message_out(jid, 0, msg);
 
   // Network part
   buffer = utf8_encode(msg);