| 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 } |