Mercurial > pidgin
comparison src/protocols/irc/irc.c @ 3466:7a3f16a375a5
[gaim-migrate @ 3516]
some patches from some people.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Thu, 29 Aug 2002 01:47:15 +0000 |
| parents | 12202a328adf |
| children | 3335ef5fbecc |
comparison
equal
deleted
inserted
replaced
| 3465:ec437d73b2ee | 3466:7a3f16a375a5 |
|---|---|
| 708 } | 708 } |
| 709 | 709 |
| 710 static void handle_version(struct gaim_connection *gc, char *word[], char *word_eol[], int num) | 710 static void handle_version(struct gaim_connection *gc, char *word[], char *word_eol[], int num) |
| 711 { | 711 { |
| 712 struct irc_data *id = gc->proto_data; | 712 struct irc_data *id = gc->proto_data; |
| 713 char buf[IRC_BUF_LEN]; | |
| 714 GString *str; | 713 GString *str; |
| 715 | 714 |
| 716 id->liststr = g_string_new(""); | 715 id->liststr = g_string_new(""); |
| 717 | 716 |
| 718 id->liststr = g_string_append(id->liststr, "<b>Version: </b>"); | 717 id->liststr = g_string_append(id->liststr, "<b>Version: </b>"); |
| 1752 return ret; | 1751 return ret; |
| 1753 } else | 1752 } else |
| 1754 return handle_command(gc, who, what); | 1753 return handle_command(gc, who, what); |
| 1755 } | 1754 } |
| 1756 | 1755 |
| 1757 static void irc_chat_invite(struct gaim_connection *gc, int idn, char *message, char *name) { | 1756 static void irc_chat_invite(struct gaim_connection *gc, int idn, const char *message, const char *name) { |
| 1758 char buf[IRC_BUF_LEN]; | 1757 char buf[IRC_BUF_LEN]; |
| 1759 struct irc_data *id = gc->proto_data; | 1758 struct irc_data *id = gc->proto_data; |
| 1760 struct conversation *c = irc_find_chat_by_id(gc, idn); | 1759 struct conversation *c = irc_find_chat_by_id(gc, idn); |
| 1761 g_snprintf(buf, sizeof(buf), "INVITE %s %s\r\n", name, c->name); | 1760 g_snprintf(buf, sizeof(buf), "INVITE %s %s\r\n", name, c->name); |
| 1762 irc_write(id->fd, buf, strlen(buf)); | 1761 irc_write(id->fd, buf, strlen(buf)); |
| 1768 return send_msg(gc, who + 1, what); | 1767 return send_msg(gc, who + 1, what); |
| 1769 return send_msg(gc, who, what); | 1768 return send_msg(gc, who, what); |
| 1770 } | 1769 } |
| 1771 | 1770 |
| 1772 /* IRC doesn't have a buddy list, but we can still figure out who's online with ISON */ | 1771 /* IRC doesn't have a buddy list, but we can still figure out who's online with ISON */ |
| 1773 static void irc_add_buddy(struct gaim_connection *gc, char *who) {} | 1772 static void irc_add_buddy(struct gaim_connection *gc, const char *who) {} |
| 1774 static void irc_remove_buddy(struct gaim_connection *gc, char *who, char *group) {} | 1773 static void irc_remove_buddy(struct gaim_connection *gc, char *who, char *group) {} |
| 1775 | 1774 |
| 1776 static GList *irc_chat_info(struct gaim_connection *gc) | 1775 static GList *irc_chat_info(struct gaim_connection *gc) |
| 1777 { | 1776 { |
| 1778 GList *m = NULL; | 1777 GList *m = NULL; |
