pidgin/plugins/musicmessaging/musicmessaging.c

branch
soc.2013.gobjectification
changeset 34622
753f46dd000f
parent 32698
154e4a2a6287
child 34660
68c776e3436e
equal deleted inserted replaced
34621:66308be62d23 34622:753f46dd000f
109 } else 109 } else
110 { 110 {
111 GString *to_send = g_string_new(""); 111 GString *to_send = g_string_new("");
112 g_string_append_printf(to_send, "##MM## request %s %s##MM##", command, parameters); 112 g_string_append_printf(to_send, "##MM## request %s %s##MM##", command, parameters);
113 113
114 purple_conv_im_send(PURPLE_CONV_IM(mmconv->conv), to_send->str); 114 purple_im_conversation_send(PURPLE_CONV_IM(mmconv->conv), to_send->str);
115 115
116 purple_debug_misc("musicmessaging", "Sent request: %s\n", to_send->str); 116 purple_debug_misc("musicmessaging", "Sent request: %s\n", to_send->str);
117 } 117 }
118 } 118 }
119 119
129 if (mmconv->originator) 129 if (mmconv->originator)
130 { 130 {
131 GString *to_send = g_string_new(""); 131 GString *to_send = g_string_new("");
132 g_string_append_printf(to_send, "##MM## confirm %s %s##MM##", command, parameters); 132 g_string_append_printf(to_send, "##MM## confirm %s %s##MM##", command, parameters);
133 133
134 purple_conv_im_send(PURPLE_CONV_IM(mmconv->conv), to_send->str); 134 purple_im_conversation_send(PURPLE_CONV_IM(mmconv->conv), to_send->str);
135 } else 135 } else
136 { 136 {
137 /* Do nothing. If they aren't the originator, then they can't confirm. */ 137 /* Do nothing. If they aren't the originator, then they can't confirm. */
138 } 138 }
139 } 139 }
152 if (mmconv->originator) 152 if (mmconv->originator)
153 { 153 {
154 GString *to_send = g_string_new(""); 154 GString *to_send = g_string_new("");
155 g_string_append_printf(to_send, "##MM## failed %s %s %s##MM##", id, command, parameters); 155 g_string_append_printf(to_send, "##MM## failed %s %s %s##MM##", id, command, parameters);
156 156
157 purple_conv_im_send(PURPLE_CONV_IM(mmconv->conv), to_send->str); 157 purple_im_conversation_send(PURPLE_CONV_IM(mmconv->conv), to_send->str);
158 } else 158 } else
159 { 159 {
160 /* Do nothing. If they aren't the originator, then they can't confirm. */ 160 /* Do nothing. If they aren't the originator, then they can't confirm. */
161 } 161 }
162 } 162 }

mercurial