aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-04-12 00:29:06 +0200
committerMarius Halden <marius.h@lden.org>2016-05-07 14:31:03 +0200
commit0f56b8dc9e8ddbec1cf7cacd35a782cbfbd6186c (patch)
tree767c3ea3c743f51040638fb0dc80045fc985ec3c
parentecda1fce37c21bf6925f8bb67135f15cbf22f8aa (diff)
Allow purple and default plugins
-rwxr-xr-xconfigure12
-rw-r--r--protocols/purple/purple.c8
2 files changed, 10 insertions, 10 deletions
diff --git a/configure b/configure
index d2979130..fda2ba6e 100755
--- a/configure
+++ b/configure
@@ -816,13 +816,13 @@ EOF
protoobjs=$protoobjs'purple_mod.o '
# only disable these if the user didn't enable them explicitly
- [ "$msn" = "default-on" ] && msn=0
- [ "$jabber" = "default-on" ] && jabber=0
- [ "$oscar" = "default-on" ] && oscar=0
- [ "$yahoo" = "default-on" ] && yahoo=0
+ #[ "$msn" = "default-on" ] && msn=0
+ #[ "$jabber" = "default-on" ] && jabber=0
+ #[ "$oscar" = "default-on" ] && oscar=0
+ #[ "$yahoo" = "default-on" ] && yahoo=0
- echo '#undef PACKAGE' >> config.h
- echo '#define PACKAGE "BitlBee-LIBPURPLE"' >> config.h
+ #echo '#undef PACKAGE' >> config.h
+ #echo '#define PACKAGE "BitlBee-LIBPURPLE"' >> config.h
if [ "$events" = "libevent" ]; then
echo 'Warning: Some libpurple modules (including msn-pecan) do their event handling'
diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c
index d0e8ec40..11a7eac6 100644
--- a/protocols/purple/purple.c
+++ b/protocols/purple/purple.c
@@ -1532,8 +1532,8 @@ void purple_initmodule()
ret = g_memdup(&funcs, sizeof(funcs));
ret->name = ret->data = prot->info->id;
- if (strncmp(ret->name, "prpl-", 5) == 0) {
- ret->name += 5;
+ if (strncmp(ret->name, "prpl-", 5) != 0) {
+ ret->name = g_strdup_printf("prpl-%s", ret->name);
}
register_protocol(ret);
@@ -1541,12 +1541,12 @@ void purple_initmodule()
/* libpurple doesn't define a protocol called OSCAR, but we
need it to be compatible with normal BitlBee. */
- if (g_strcasecmp(prot->info->id, "prpl-aim") == 0) {
+ /*if (g_strcasecmp(prot->info->id, "prpl-aim") == 0) {
ret = g_memdup(&funcs, sizeof(funcs));
ret->name = "oscar";
ret->data = prot->info->id;
register_protocol(ret);
- }
+ }*/
}
g_string_append(help, "\n\nFor used protocols, more information about available "