# HG changeset patch # User Sadrul Habib Chowdhury # Date 1213409006 0 # Node ID 54aaea893a890b2ca96dddec33ef84ede8094ad0 # Parent d1eee441bf2502487d9eb2eb6c6f551da8a5ca21 Send '//message' as '/message', instead of looking for a 'message' command. diff -r d1eee441bf25 -r 54aaea893a89 finch/gntconv.c --- a/finch/gntconv.c Sat Jun 14 02:01:41 2008 +0000 +++ b/finch/gntconv.c Sat Jun 14 02:03:26 2008 +0000 @@ -141,7 +141,7 @@ entry_key_pressed(GntWidget *w, FinchConv *ggconv) { const char *text = gnt_entry_get_text(GNT_ENTRY(ggconv->entry)); - if (*text == '/') + if (*text == '/' && *(text + 1) != '/') { PurpleConversation *conv = ggconv->active_conv; PurpleCmdStatus status; @@ -191,7 +191,7 @@ } else { - char *escape = g_markup_escape_text(text, -1); + char *escape = g_markup_escape_text((*text == '/' ? text + 1 : text), -1); char *apos = purple_strreplace(escape, "'", "'"); g_free(escape); escape = apos;