Mercurial > pidgin
comparison src/protocols/irc/cmds.c @ 6982:083d1e4a9c78
[gaim-migrate @ 7538]
This is Mr. Holland's Opus. And by Mr. Holland I mean Robot101. He
rewrote the coreish IM image support so that the binary data gets
ripped out in the prpl and put in an imgstore instead of just being
passed in the same huge as char string as the actual message. This
is good because it's prpl agnostic, or something. It also means
we don't have a silly length of "-1" with pretty much every send or
receive IM function.
It should be crash free, bug free, and memleak free, but additional
testing is always a good thing.
If you like good stuff then you'll love this patch. But don't take
my word for it--ba dun dunt!
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 27 Sep 2003 19:17:21 +0000 |
parents | 42fdf16f1dad |
children | bf630f7dfdcd |
comparison
equal
deleted
inserted
replaced
6981:abd3c684da31 | 6982:083d1e4a9c78 |
---|---|
38 if (!convo) | 38 if (!convo) |
39 return 1; | 39 return 1; |
40 | 40 |
41 buf = g_strdup_printf(_("Unknown command: %s"), cmd); | 41 buf = g_strdup_printf(_("Unknown command: %s"), cmd); |
42 if (gaim_conversation_get_type(convo) == GAIM_CONV_IM) | 42 if (gaim_conversation_get_type(convo) == GAIM_CONV_IM) |
43 gaim_im_write(GAIM_IM(convo), "", buf, -1, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL)); | 43 gaim_im_write(GAIM_IM(convo), "", buf, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL)); |
44 else | 44 else |
45 gaim_chat_write(GAIM_CHAT(convo), "", buf, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL)); | 45 gaim_chat_write(GAIM_CHAT(convo), "", buf, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL)); |
46 g_free(buf); | 46 g_free(buf); |
47 | 47 |
48 return 1; | 48 return 1; |
143 } else { | 143 } else { |
144 gaim_im_write(GAIM_IM(convo), "", _("<B>Supported IRC Commands:</B><BR>" | 144 gaim_im_write(GAIM_IM(convo), "", _("<B>Supported IRC Commands:</B><BR>" |
145 "AWAY JOIN ME MODE<BR>" | 145 "AWAY JOIN ME MODE<BR>" |
146 "MSG NICK OPERWALL PING<BR>" | 146 "MSG NICK OPERWALL PING<BR>" |
147 "QUERY QUIT QUOTE UMODE<BR>" | 147 "QUERY QUIT QUOTE UMODE<BR>" |
148 "WALLOPS WHOIS"), -1, GAIM_MESSAGE_NO_LOG, time(NULL)); | 148 "WALLOPS WHOIS"), GAIM_MESSAGE_NO_LOG, time(NULL)); |
149 } | 149 } |
150 | 150 |
151 return 0; | 151 return 0; |
152 } | 152 } |
153 | 153 |
411 | 411 |
412 if (args[1]) { | 412 if (args[1]) { |
413 gc = gaim_account_get_connection(irc->account); | 413 gc = gaim_account_get_connection(irc->account); |
414 irc_cmd_privmsg(irc, cmd, target, args); | 414 irc_cmd_privmsg(irc, cmd, target, args); |
415 gaim_im_write(GAIM_IM(convo), gaim_connection_get_display_name(gc), | 415 gaim_im_write(GAIM_IM(convo), gaim_connection_get_display_name(gc), |
416 args[1], -1, GAIM_MESSAGE_SEND, time(NULL)); | 416 args[1], GAIM_MESSAGE_SEND, time(NULL)); |
417 } | 417 } |
418 | 418 |
419 return 0; | 419 return 0; |
420 } | 420 } |
421 | 421 |