Changes in protocols/oscar/oscar.c [11e090b:e8f8b18]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
r11e090b re8f8b18 21 21 */ 22 22 23 #include "sock.h"24 23 #include <errno.h> 25 24 #include <ctype.h> … … 33 32 #include "bitlbee.h" 34 33 #include "proxy.h" 34 #include "sock.h" 35 35 36 36 #include "aim.h" … … 357 357 odata->icq = TRUE; 358 358 /* this is odd but it's necessary for a proper do_import and do_export */ 359 gc->protocol = PROTO_ICQ;360 359 gc->password[8] = 0; 361 360 } else { 362 gc->protocol = PROTO_TOC;363 361 gc->flags |= OPT_CONN_HTML; 364 362 } … … 610 608 return; 611 609 } 610 /* [WvG] Wheeeee! Who needs error checking anyway? ;-) */ 612 611 read(pos->fd, m, 16); 613 612 m[16] = '\0'; … … 2633 2632 } 2634 2633 2635 static struct prpl *my_protocol = NULL; 2636 2637 void oscar_init(struct prpl *ret) { 2638 ret-> protocol = PROTO_OSCAR;2634 void oscar_init() 2635 { 2636 struct prpl *ret = g_new0(struct prpl, 1); 2637 ret->name = "oscar"; 2639 2638 ret->away_states = oscar_away_states; 2640 2639 ret->login = oscar_login; … … 2658 2657 ret->cmp_buddynames = aim_sncmp; 2659 2658 ret->get_status_string = oscar_get_status_string; 2660 2661 2659 ret->send_typing = oscar_send_typing; 2662 2660 2663 my_protocol = ret;2664 } 2661 register_protocol(ret); 2662 }
Note: See TracChangeset
for help on using the changeset viewer.