aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/bee_user.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-06-03 01:20:53 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-06-03 01:20:53 +0100
commitad404ab26aa3cfdfc3c76f6926e556e333d02753 (patch)
tree162f7b2a63e79c6b0580fa3de63b8274d17e0c99 /protocols/bee_user.c
parent704dd38a1440dc9d614df9222d6196048226622c (diff)
Restore add_* handle_unknown settings.
Diffstat (limited to 'protocols/bee_user.c')
-rw-r--r--protocols/bee_user.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/bee_user.c b/protocols/bee_user.c
index b1dcffc8..fd2e8635 100644
--- a/protocols/bee_user.c
+++ b/protocols/bee_user.c
@@ -26,7 +26,7 @@
#define BITLBEE_CORE
#include "bitlbee.h"
-bee_user_t *bee_user_new( bee_t *bee, struct im_connection *ic, const char *handle )
+bee_user_t *bee_user_new( bee_t *bee, struct im_connection *ic, const char *handle, bee_user_flags_t flags )
{
bee_user_t *bu;
@@ -36,6 +36,7 @@ bee_user_t *bee_user_new( bee_t *bee, struct im_connection *ic, const char *hand
bu = g_new0( bee_user_t, 1 );
bu->bee = bee;
bu->ic = ic;
+ bu->flags = flags;
bu->handle = g_strdup( handle );
bee->users = g_slist_prepend( bee->users, bu );
@@ -159,7 +160,7 @@ void imcb_buddy_status( struct im_connection *ic, const char *handle, int flags,
{
if( g_strcasecmp( set_getstr( &ic->bee->set, "handle_unknown" ), "add" ) == 0 )
{
- bu = bee_user_new( bee, ic, handle );
+ bu = bee_user_new( bee, ic, handle, BEE_USER_LOCAL );
}
else
{
@@ -207,7 +208,7 @@ void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, ui
}
else if( g_strncasecmp( h, "add", 3 ) == 0 )
{
- bu = bee_user_new( bee, ic, handle );
+ bu = bee_user_new( bee, ic, handle, BEE_USER_LOCAL );
}
}