| 79 write(*a, "*\002", 2); |
78 write(*a, "*\002", 2); |
| 80 write(*a, &seqno, 2); |
79 write(*a, &seqno, 2); |
| 81 write(*a, &len, 2); |
80 write(*a, &len, 2); |
| 82 write(*a, txt, ntohs(len)); |
81 write(*a, txt, ntohs(len)); |
| 83 purple_debug(PURPLE_DEBUG_MISC, "raw", "TOC C: %s\n", txt); |
82 purple_debug(PURPLE_DEBUG_MISC, "raw", "TOC C: %s\n", txt); |
| 84 |
|
| 85 } else if (strcmp(prpl_id, "prpl-msn") == 0) { |
|
| 86 MsnSession *session = gc->proto_data; |
|
| 87 char buf[strlen(txt) + 3]; |
|
| 88 |
|
| 89 g_snprintf(buf, sizeof(buf), "%s\r\n", txt); |
|
| 90 msn_servconn_write(session->notification->servconn, buf, strlen(buf)); |
|
| 91 |
83 |
| 92 } else if (strcmp(prpl_id, "prpl-irc") == 0) { |
84 } else if (strcmp(prpl_id, "prpl-irc") == 0) { |
| 93 write(*(int *)gc->proto_data, txt, strlen(txt)); |
85 write(*(int *)gc->proto_data, txt, strlen(txt)); |
| 94 write(*(int *)gc->proto_data, "\r\n", 2); |
86 write(*(int *)gc->proto_data, "\r\n", 2); |
| 95 purple_debug(PURPLE_DEBUG_MISC, "raw", "IRC C: %s\n", txt); |
87 purple_debug(PURPLE_DEBUG_MISC, "raw", "IRC C: %s\n", txt); |
| 173 PURPLE_PRIORITY_DEFAULT, |
165 PURPLE_PRIORITY_DEFAULT, |
| 174 RAW_PLUGIN_ID, |
166 RAW_PLUGIN_ID, |
| 175 N_("Raw"), |
167 N_("Raw"), |
| 176 DISPLAY_VERSION, |
168 DISPLAY_VERSION, |
| 177 N_("Lets you send raw input to text-based protocols."), |
169 N_("Lets you send raw input to text-based protocols."), |
| 178 N_("Lets you send raw input to text-based protocols (XMPP, MSN, IRC, " |
170 N_("Lets you send raw input to text-based protocols (XMPP, IRC, " |
| 179 "TOC). Hit 'Enter' in the entry box to send. Watch the debug window."), |
171 "TOC). Hit 'Enter' in the entry box to send. Watch the debug window."), |
| 180 "Eric Warmenhoven <eric@warmenhoven.org>", |
172 "Eric Warmenhoven <eric@warmenhoven.org>", |
| 181 PURPLE_WEBSITE, |
173 PURPLE_WEBSITE, |
| 182 plugin_load, |
174 plugin_load, |
| 183 plugin_unload, |
175 plugin_unload, |