aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/nogaim.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/nogaim.c')
-rw-r--r--protocols/nogaim.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/protocols/nogaim.c b/protocols/nogaim.c
index 2248d11e..cd57a289 100644
--- a/protocols/nogaim.c
+++ b/protocols/nogaim.c
@@ -116,12 +116,15 @@ void register_protocol (struct prpl *p)
struct prpl *find_protocol(const char *name)
{
GList *gl;
- for (gl = protocols; gl; gl = gl->next)
+
+ for( gl = protocols; gl; gl = gl->next )
{
struct prpl *proto = gl->data;
- if(!g_strcasecmp(proto->name, name))
+
+ if( g_strcasecmp( proto->name, name ) == 0 )
return proto;
}
+
return NULL;
}
@@ -133,6 +136,7 @@ void nogaim_init()
extern void byahoo_initmodule();
extern void jabber_initmodule();
extern void twitter_initmodule();
+ extern void purple_initmodule();
#ifdef WITH_MSN
msn_initmodule();
@@ -153,6 +157,10 @@ void nogaim_init()
#ifdef WITH_TWITTER
twitter_initmodule();
#endif
+
+#ifdef WITH_PURPLE
+ purple_initmodule();
+#endif
#ifdef WITH_PLUGINS
load_plugins();