| 135 action = g_strdup_printf("/me %s", escaped); |
135 action = g_strdup_printf("/me %s", escaped); |
| 136 g_free(escaped); |
136 g_free(escaped); |
| 137 if (action[strlen(action) - 1] == '\n') |
137 if (action[strlen(action) - 1] == '\n') |
| 138 action[strlen(action) - 1] = '\0'; |
138 action[strlen(action) - 1] = '\0'; |
| 139 if (PURPLE_IS_CHAT_CONVERSATION(convo)) |
139 if (PURPLE_IS_CHAT_CONVERSATION(convo)) |
| 140 serv_got_chat_in(gc, purple_chat_conversation_get_id(PURPLE_CHAT_CONVERSATION(convo)), |
140 purple_serv_got_chat_in(gc, purple_chat_conversation_get_id(PURPLE_CHAT_CONVERSATION(convo)), |
| 141 purple_connection_get_display_name(gc), |
141 purple_connection_get_display_name(gc), |
| 142 PURPLE_MESSAGE_SEND, action, time(NULL)); |
142 PURPLE_MESSAGE_SEND, action, time(NULL)); |
| 143 else |
143 else |
| 144 purple_conversation_write_message(convo, purple_connection_get_display_name(gc), |
144 purple_conversation_write_message(convo, purple_connection_get_display_name(gc), |
| 145 action, PURPLE_MESSAGE_SEND, time(NULL)); |
145 action, PURPLE_MESSAGE_SEND, time(NULL)); |