diff -r 4d6a9973c7a9 -r 280b3b85a28a src/protocols/irc/cmds.c
--- a/src/protocols/irc/cmds.c Thu Oct 02 02:15:36 2003 +0000
+++ b/src/protocols/irc/cmds.c Thu Oct 02 02:54:07 2003 +0000
@@ -40,9 +40,9 @@
buf = g_strdup_printf(_("Unknown command: %s"), cmd);
if (gaim_conversation_get_type(convo) == GAIM_CONV_IM)
- gaim_im_write(GAIM_IM(convo), "", buf, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL));
+ gaim_conv_im_write(GAIM_CONV_IM(convo), "", buf, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL));
else
- gaim_chat_write(GAIM_CHAT(convo), "", buf, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL));
+ gaim_conv_chat_write(GAIM_CONV_CHAT(convo), "", buf, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL));
g_free(buf);
return 1;
@@ -113,7 +113,7 @@
action = g_strdup_printf("/me %s", args[0]);
if (action[strlen(action) - 1] == '\n')
action[strlen(action) - 1] = '\0';
- serv_got_chat_in(gc, gaim_chat_get_id(GAIM_CHAT(convo)),
+ serv_got_chat_in(gc, gaim_conv_chat_get_id(GAIM_CONV_CHAT(convo)),
gaim_connection_get_display_name(gc),
0, action, time(NULL));
g_free(action);
@@ -132,7 +132,7 @@
return 0;
if (gaim_conversation_get_type(convo) == GAIM_CONV_CHAT) {
- gaim_chat_write(GAIM_CHAT(convo), "", _("Supported IRC Commands:
"
+ gaim_conv_chat_write(GAIM_CONV_CHAT(convo), "", _("Supported IRC Commands:
"
"AWAY INVITE JOIN KICK
"
"ME MODE MSG NAMES
"
"NICK OP DEOP OPERWALL
"
@@ -141,7 +141,7 @@
"VOICE DEVOICE WALLOPS WHOIS
"),
GAIM_MESSAGE_NO_LOG, time(NULL));
} else {
- gaim_im_write(GAIM_IM(convo), "", _("Supported IRC Commands:
"
+ gaim_conv_im_write(GAIM_CONV_IM(convo), "", _("Supported IRC Commands:
"
"AWAY JOIN ME MODE
"
"MSG NICK OPERWALL PING
"
"QUERY QUIT QUOTE UMODE
"
@@ -412,7 +412,7 @@
if (args[1]) {
gc = gaim_account_get_connection(irc->account);
irc_cmd_privmsg(irc, cmd, target, args);
- gaim_im_write(GAIM_IM(convo), gaim_connection_get_display_name(gc),
+ gaim_conv_im_write(GAIM_CONV_IM(convo), gaim_connection_get_display_name(gc),
args[1], GAIM_MESSAGE_SEND, time(NULL));
}
@@ -453,13 +453,13 @@
return 0;
if (!args[0]) {
- topic = gaim_chat_get_topic (GAIM_CHAT(convo));
+ topic = gaim_conv_chat_get_topic (GAIM_CONV_CHAT(convo));
if (topic)
buf = g_strdup_printf(_("current topic is: %s"), topic);
else
buf = g_strdup(_("No topic is set"));
- gaim_chat_write(GAIM_CHAT(convo), target, buf, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL));
+ gaim_conv_chat_write(GAIM_CONV_CHAT(convo), target, buf, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL));
g_free(buf);
return 0;