| 149 } |
149 } |
| 150 |
150 |
| 151 g_strfreev(target_tokens); |
151 g_strfreev(target_tokens); |
| 152 |
152 |
| 153 if (isnick) { |
153 if (isnick) { |
| 154 PurpleIMConversation *im; |
154 PurpleConversation *im; |
| 155 |
155 |
| 156 /* 'server' isn't needed here. Free it immediately. */ |
156 /* 'server' isn't needed here. Free it immediately. */ |
| 157 g_free(server); |
157 g_free(server); |
| 158 |
158 |
| 159 /* +1 to skip '#' target prefix */ |
159 /* +1 to skip '#' target prefix */ |
| 160 im = purple_im_conversation_new(account, target + 1); |
160 im = purple_im_conversation_new(account, target + 1); |
| 161 g_free(target); |
161 g_free(target); |
| 162 |
162 |
| 163 purple_conversation_present(PURPLE_CONVERSATION(im)); |
163 purple_conversation_present(im); |
| 164 |
164 |
| 165 if (params != NULL) { |
165 if (params != NULL) { |
| 166 const gchar *msg = g_hash_table_lookup(params, "msg"); |
166 const gchar *msg = g_hash_table_lookup(params, "msg"); |
| 167 |
167 |
| 168 if (msg != NULL) { |
168 if (msg != NULL) { |
| 169 purple_conversation_send_confirm( |
169 purple_conversation_send_confirm(im, msg); |
| 170 PURPLE_CONVERSATION(im), msg); |
|
| 171 } |
170 } |
| 172 } |
171 } |
| 173 |
172 |
| 174 return TRUE; |
173 return TRUE; |
| 175 } else { |
174 } else { |