]> git.0d.be Git - empathy.git/blobdiff - libempathy/gossip-message.c
[darcs-to-svn @ Handling /say msg and remove useless debug messages]
[empathy.git] / libempathy / gossip-message.c
index 85889e7da5cbe0a21d82d6824ab6d3bd280a058c..c4844e655bc828857ec783a1638d9a957ffd4610 100644 (file)
@@ -1,6 +1,7 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  * Copyright (C) 2004-2007 Imendio AB
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  * Copyright (C) 2004-2007 Imendio AB
+ * Copyright (C) 2007 Collabora Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -18,6 +19,7 @@
  * Boston, MA 02111-1307, USA.
  *
  * Authors: Mikael Hallendal <micke@imendio.com>
  * Boston, MA 02111-1307, USA.
  *
  * Authors: Mikael Hallendal <micke@imendio.com>
+ *          Xavier Claessens <xclaesse@gmail.com>
  */
 
 #include "config.h"
  */
 
 #include "config.h"
@@ -319,6 +321,9 @@ gossip_message_set_body (GossipMessage *message,
                type = GOSSIP_MESSAGE_TYPE_ACTION;
                body += 4;
        }
                type = GOSSIP_MESSAGE_TYPE_ACTION;
                body += 4;
        }
+       else if (g_str_has_prefix (body, "/say")) {
+               body += 5;
+       }
 
        if (body) {
                priv->body = g_strdup (body);
 
        if (body) {
                priv->body = g_strdup (body);