diff options
author | Marius Halden <marius.h@lden.org> | 2016-04-12 00:29:06 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-05-07 14:31:03 +0200 |
commit | 0f56b8dc9e8ddbec1cf7cacd35a782cbfbd6186c (patch) | |
tree | 767c3ea3c743f51040638fb0dc80045fc985ec3c /protocols/purple/purple.c | |
parent | ecda1fce37c21bf6925f8bb67135f15cbf22f8aa (diff) |
Allow purple and default plugins
Diffstat (limited to 'protocols/purple/purple.c')
-rw-r--r-- | protocols/purple/purple.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 " |