Mercurial > pidgin.yaz
comparison src/protocols/irc/irc.c @ 9754:4a8bf81b82ae
[gaim-migrate @ 10621]
" This will default the room/server fields to the proper
values when an add chat is requested from a
conversation window. It wasn't quite as trivial as the
reporter suggested..." --Nathan (noif) Fredrickson
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 15 Aug 2004 19:34:20 +0000 |
parents | b10d4c6ac7eb |
children | e74eb0d11f86 |
comparison
equal
deleted
inserted
replaced
9753:60705fd4f411 | 9754:4a8bf81b82ae |
---|---|
187 m = g_list_append(m, pce); | 187 m = g_list_append(m, pce); |
188 | 188 |
189 return m; | 189 return m; |
190 } | 190 } |
191 | 191 |
192 GHashTable *irc_chat_info_defaults(GaimConnection *gc, const char *chat_name) | |
193 { | |
194 GHashTable *defaults; | |
195 | |
196 defaults = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, g_free); | |
197 | |
198 if (chat_name != NULL) | |
199 g_hash_table_insert(defaults, "channel", g_strdup(chat_name)); | |
200 | |
201 return defaults; | |
202 } | |
203 | |
192 static void irc_login(GaimAccount *account) | 204 static void irc_login(GaimAccount *account) |
193 { | 205 { |
194 GaimConnection *gc; | 206 GaimConnection *gc; |
195 struct irc_conn *irc; | 207 struct irc_conn *irc; |
196 char *buf, **userparts; | 208 char *buf, **userparts; |
577 NULL, /* status_text */ | 589 NULL, /* status_text */ |
578 NULL, /* tooltip_text */ | 590 NULL, /* tooltip_text */ |
579 irc_away_states, /* away_states */ | 591 irc_away_states, /* away_states */ |
580 NULL, /* blist_node_menu */ | 592 NULL, /* blist_node_menu */ |
581 irc_chat_join_info, /* chat_info */ | 593 irc_chat_join_info, /* chat_info */ |
594 irc_chat_info_defaults, /* chat_info_defaults */ | |
582 irc_login, /* login */ | 595 irc_login, /* login */ |
583 irc_close, /* close */ | 596 irc_close, /* close */ |
584 irc_im_send, /* send_im */ | 597 irc_im_send, /* send_im */ |
585 NULL, /* set_info */ | 598 NULL, /* set_info */ |
586 NULL, /* send_typing */ | 599 NULL, /* send_typing */ |