comparison libpurple/protocols/myspace/myspace.c @ 17942:949fddc9d82f

Add /3 -> | escape code (found by sje397, documented in [wiki:MsimProtocolSpec]).
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Wed, 11 Jul 2007 05:21:06 +0000
parents dcbb535e8d55
children c109b7f1c739
comparison
equal deleted inserted replaced
17941:dcbb535e8d55 17942:949fddc9d82f
103 return "myspace"; 103 return "myspace";
104 } 104 }
105 105
106 /* Replacement codes to be replaced with associated replacement text, 106 /* Replacement codes to be replaced with associated replacement text,
107 * used for protocol message escaping / unescaping. */ 107 * used for protocol message escaping / unescaping. */
108 static gchar* msim_replacement_code[] = { "/1", "/2", NULL }; 108 static gchar* msim_replacement_code[] = { "/1", "/2", "/3", NULL };
109 static gchar* msim_replacement_text[] = { "/", "\\", NULL }; 109 static gchar* msim_replacement_text[] = { "/", "\\", "|", NULL };
110 110
111 /** 111 /**
112 * Unescape or escape a protocol message. 112 * Unescape or escape a protocol message.
113 * 113 *
114 * @param msg The message to be unescaped or escaped. WILL BE FREED. 114 * @param msg The message to be unescaped or escaped. WILL BE FREED.