Mercurial > pidgin
comparison src/protocols/irc/irc.c @ 8163:da57fb60680a
[gaim-migrate @ 8875]
IRC quoting for HTML entities by Daniel Atallah
committer: Tailor Script <tailor@pidgin.im>
| author | Ethan Blanton <elb@pidgin.im> |
|---|---|
| date | Thu, 22 Jan 2004 02:44:13 +0000 |
| parents | a0e7d0995156 |
| children | 9d1a984681fe |
comparison
equal
deleted
inserted
replaced
| 8162:3273ff25b645 | 8163:da57fb60680a |
|---|---|
| 426 static int irc_chat_send(GaimConnection *gc, int id, const char *what) | 426 static int irc_chat_send(GaimConnection *gc, int id, const char *what) |
| 427 { | 427 { |
| 428 struct irc_conn *irc = gc->proto_data; | 428 struct irc_conn *irc = gc->proto_data; |
| 429 GaimConversation *convo = gaim_find_chat(gc, id); | 429 GaimConversation *convo = gaim_find_chat(gc, id); |
| 430 const char *args[2]; | 430 const char *args[2]; |
| 431 char *tmp; | |
| 431 | 432 |
| 432 if (!convo) { | 433 if (!convo) { |
| 433 gaim_debug(GAIM_DEBUG_ERROR, "irc", "chat send on nonexistent chat\n"); | 434 gaim_debug(GAIM_DEBUG_ERROR, "irc", "chat send on nonexistent chat\n"); |
| 434 return -EINVAL; | 435 return -EINVAL; |
| 435 } | 436 } |
| 440 | 441 |
| 441 args[0] = convo->name; | 442 args[0] = convo->name; |
| 442 args[1] = what; | 443 args[1] = what; |
| 443 | 444 |
| 444 irc_cmd_privmsg(irc, "msg", NULL, args); | 445 irc_cmd_privmsg(irc, "msg", NULL, args); |
| 445 serv_got_chat_in(gc, id, gaim_connection_get_display_name(gc), 0, what, time(NULL)); | 446 |
| 447 tmp = gaim_escape_html(what); | |
| 448 serv_got_chat_in(gc, id, gaim_connection_get_display_name(gc), 0, tmp, time(NULL)); | |
| 449 g_free(tmp); | |
| 446 return 0; | 450 return 0; |
| 447 } | 451 } |
| 448 | 452 |
| 449 static guint irc_nick_hash(const char *nick) | 453 static guint irc_nick_hash(const char *nick) |
| 450 { | 454 { |
