diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2005-11-07 17:16:18 +0100 | 
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2005-11-07 17:16:18 +0100 | 
| commit | 7b23afdeead5b873b3e1cfc5ab29ecbf35b8c0ac (patch) | |
| tree | 975c4b3725525244353f722b60fef54b79628d92 /protocols/msn/msn.c | |
| parent | fe51bcf0ae238e6fde4400b3dd17ddf99f77ae2a (diff) | |
Migrate my pluginable branch to use Wilmers' branch as parent
Diffstat (limited to 'protocols/msn/msn.c')
| -rw-r--r-- | protocols/msn/msn.c | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c index 33e12af5..42d763e8 100644 --- a/protocols/msn/msn.c +++ b/protocols/msn/msn.c @@ -26,8 +26,6 @@  #include "nogaim.h"  #include "msn.h" -static struct prpl *my_protocol = NULL; -  static void msn_login( struct aim_user *acct )  {  	struct gaim_connection *gc = new_gaim_conn( acct ); @@ -374,9 +372,10 @@ static int msn_send_typing( struct gaim_connection *gc, char *who, int typing )  		return( 1 );  } -void msn_init(struct prpl *ret) +void msn_init()  { -	ret->protocol = PROTO_MSN; +	struct prpl *ret = g_new0(struct prpl, 1); +	ret->name = "msn";  	ret->login = msn_login;  	ret->close = msn_close;  	ret->send_im = msn_send_im; @@ -398,5 +397,5 @@ void msn_init(struct prpl *ret)  	ret->rem_deny = msn_rem_deny;  	ret->send_typing = msn_send_typing; -	my_protocol = ret; +	register_protocol(ret);  } | 
