diff options
Diffstat (limited to 'protocols/jabber/jabber.c')
| -rw-r--r-- | protocols/jabber/jabber.c | 15 | 
1 files changed, 5 insertions, 10 deletions
| diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c index a724bdcd..25b51ba4 100644 --- a/protocols/jabber/jabber.c +++ b/protocols/jabber/jabber.c @@ -157,11 +157,6 @@ struct jabber_chat {  #define JCS_CLOSED  3	/* closed */ -static char *jabber_name() -{ -	return "Jabber"; -} -  #define STATE_EVT(arg) if(gjc->on_state) { (gjc->on_state)(gjc, (arg) ); }  static void jabber_remove_buddy(struct gaim_connection *gc, char *name, char *group); @@ -2412,13 +2407,13 @@ static GList *jabber_actions()  	return m;  } -static struct prpl *my_protocol = NULL; -void jabber_init(struct prpl *ret) +void jabber_init()  { +	struct prpl *ret = g_new0(struct prpl, 1); +  	/* the NULL's aren't required but they're nice to have */ -	ret->protocol = PROTO_JABBER; -	ret->name = jabber_name; +	ret->name = "jabber";  	ret->away_states = jabber_away_states;  	ret->actions = jabber_actions;  	ret->login = jabber_login; @@ -2442,5 +2437,5 @@ void jabber_init(struct prpl *ret)  	ret->group_buddy = jabber_group_change;  	ret->cmp_buddynames = g_strcasecmp; -	my_protocol = ret; +	register_protocol (ret);  } | 
