aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2005-12-15 12:55:27 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2005-12-15 12:55:27 +0100
commitbf02a679c61b0f030ee8f2f01698699a7775f7d5 (patch)
tree0b890c2dd7fb03aa151df76c99146a765ca41adb /protocols/msn
parent11e090b246a86deb7b882217772b90fc52d7e4f6 (diff)
parent547f9373fe4cda601e53759500d189dd580a0d78 (diff)
Merged Jelmer's pluginable tree (mainly useful for the Win32 port).
Diffstat (limited to 'protocols/msn')
-rw-r--r--protocols/msn/msn.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c
index bc2f1235..b828d31c 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;
@@ -399,5 +398,5 @@ void msn_init(struct prpl *ret)
ret->send_typing = msn_send_typing;
ret->cmp_buddynames = g_strcasecmp;
- my_protocol = ret;
+ register_protocol(ret);
}