Mercurial > pidgin
comparison src/protocols/irc/parse.c @ 6350:34c07f5f34a0
[gaim-migrate @ 6849]
-Compile warning fixes from The Man (Paco-Paco)
-2 memleak fixes from me. One of them leaked the size of a chat message when
either sending or receiving, I forgot which (my bad!)
-Hopefully make AIM correctly refetch your buddy list when AOL doesn't
send it to you the first time
-Maybe something else
-Chocolate
-Vanilla
-Strawberry
-Napoleon
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Thu, 31 Jul 2003 23:21:36 +0000 |
| parents | e06e04e44914 |
| children | e3be6b9744b7 |
comparison
equal
deleted
inserted
replaced
| 6349:dc89c06af77e | 6350:34c07f5f34a0 |
|---|---|
| 36 static char *irc_recv_convert(struct irc_conn *irc, const char *string); | 36 static char *irc_recv_convert(struct irc_conn *irc, const char *string); |
| 37 | 37 |
| 38 char *irc_mirc2html(const char *string); | 38 char *irc_mirc2html(const char *string); |
| 39 | 39 |
| 40 static void irc_parse_error_cb(struct irc_conn *irc, char *input); | 40 static void irc_parse_error_cb(struct irc_conn *irc, char *input); |
| 41 static void irc_default_cb(struct irc_conn *irc, char *input); | |
| 42 | 41 |
| 43 static char *irc_mirc_colors[16] = { | 42 static char *irc_mirc_colors[16] = { |
| 44 "white", "black", "blue", "dark green", "red", "brown", "purple", | 43 "white", "black", "blue", "dark green", "red", "brown", "purple", |
| 45 "orange", "yellow", "green", "teal", "cyan", "light blue", | 44 "orange", "yellow", "green", "teal", "cyan", "light blue", |
| 46 "pink", "grey", "light grey" }; | 45 "pink", "grey", "light grey" }; |
| 70 { "375", "n:", irc_msg_motd }, /* Start MOTD */ | 69 { "375", "n:", irc_msg_motd }, /* Start MOTD */ |
| 71 { "376", "n:", irc_msg_endmotd }, /* End of MOTD */ | 70 { "376", "n:", irc_msg_endmotd }, /* End of MOTD */ |
| 72 { "401", "nt:", irc_msg_nonick }, /* No such nick/chan */ | 71 { "401", "nt:", irc_msg_nonick }, /* No such nick/chan */ |
| 73 { "404", "nt:", irc_msg_nosend }, /* Cannot send to chan */ | 72 { "404", "nt:", irc_msg_nosend }, /* Cannot send to chan */ |
| 74 { "421", "nv:", irc_msg_unknown }, /* Unknown command */ | 73 { "421", "nv:", irc_msg_unknown }, /* Unknown command */ |
| 74 { "422", "nv:", irc_msg_endmotd }, /* No MOTD available */ | |
| 75 { "433", "vn:", irc_msg_nickused }, /* Nickname already in use */ | 75 { "433", "vn:", irc_msg_nickused }, /* Nickname already in use */ |
| 76 { "442", "nc:", irc_msg_notinchan }, /* Not in channel */ | 76 { "442", "nc:", irc_msg_notinchan }, /* Not in channel */ |
| 77 { "473", "nc:", irc_msg_inviteonly }, /* Tried to join invite-only */ | 77 { "473", "nc:", irc_msg_inviteonly }, /* Tried to join invite-only */ |
| 78 { "474", "nc:", irc_msg_banned }, /* Banned from channel */ | 78 { "474", "nc:", irc_msg_banned }, /* Banned from channel */ |
| 79 { "482", "nc:", irc_msg_notop }, /* Need to be op to do that */ | 79 { "482", "nc:", irc_msg_notop }, /* Need to be op to do that */ |
| 267 if (notice) { /* reply */ | 267 if (notice) { /* reply */ |
| 268 sscanf(cur, "PING %lu", ×tamp); | 268 sscanf(cur, "PING %lu", ×tamp); |
| 269 gc = gaim_account_get_connection(irc->account); | 269 gc = gaim_account_get_connection(irc->account); |
| 270 if (!gc) | 270 if (!gc) |
| 271 return NULL; | 271 return NULL; |
| 272 buf = g_strdup_printf(_("Reply time from %s: %d seconds"), from, time(NULL) - timestamp); | 272 buf = g_strdup_printf(_("Reply time from %s: %lu seconds"), from, time(NULL) - timestamp); |
| 273 gaim_notify_info(gc, _("PONG"), _("CTCP PING reply"), buf); | 273 gaim_notify_info(gc, _("PONG"), _("CTCP PING reply"), buf); |
| 274 g_free(buf); | 274 g_free(buf); |
| 275 return NULL; | 275 return NULL; |
| 276 } else { | 276 } else { |
| 277 buf = irc_format(irc, "vt:", "NOTICE", from, msg); | 277 buf = irc_format(irc, "vt:", "NOTICE", from, msg); |
