diff mcabber/src/hooks.c @ 213:4fcdbfdf7c20

[/trunk] Changeset 225 by mikael * Fix a crash when renaming to a non-7bit name (same with group name) * Move all utf-8 usage to jabglue
author mikael
date Sun, 08 May 2005 20:27:14 +0000
parents 9c2023d60986
children 73f6ce668ba8
line wrap: on
line diff
--- a/mcabber/src/hooks.c	Sun May 08 19:59:04 2005 +0000
+++ b/mcabber/src/hooks.c	Sun May 08 20:27:14 2005 +0000
@@ -32,7 +32,6 @@
 
 inline void hk_message_in(const char *jid, time_t timestamp, const char *msg)
 {
-  char *buffer = utf8_decode(msg);
   int new_guy = FALSE;
 
   // If this user isn't in the roster, we add it
@@ -44,10 +43,9 @@
   // Note: the hlog_write should not be called first, because in some
   // cases scr_WriteIncomingMessage() will load the history and we'd
   // have the message twice...
-  scr_WriteIncomingMessage(jid, buffer, timestamp, 0);
-  hlog_write_message(jid, timestamp, FALSE, buffer);
+  scr_WriteIncomingMessage(jid, msg, timestamp, 0);
+  hlog_write_message(jid, timestamp, FALSE, msg);
   hk_ext_cmd(jid, 'M', 'R', NULL);
-  free(buffer);
   // We need to rebuild the list if the sender is unknown or
   // if the sender is offline/invisible and hide_offline_buddies is set
   if (new_guy ||