From 74f1cdef999356e40e3fa3b6a2d89876b6c0c303 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 27 Mar 2010 14:05:38 -0400 Subject: irc_usermsg() works a little bit again. Have to figure out how and where to restore multiline support though. --- irc_user.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'irc_user.c') diff --git a/irc_user.c b/irc_user.c index a54fc09e..ef66f2b5 100644 --- a/irc_user.c +++ b/irc_user.c @@ -33,7 +33,7 @@ irc_user_t *irc_user_new( irc_t *irc, const char *nick ) iu->nick = g_strdup( nick ); iu->user = iu->host = iu->fullname = iu->nick; - iu->is_private = set_getbool( &irc->b->set, "private" ); + iu->flags = set_getbool( &irc->b->set, "private" ) ? IRC_USER_PRIVATE : 0; iu->key = g_strdup( nick ); nick_lc( iu->key ); @@ -116,6 +116,9 @@ gint irc_user_cmp( gconstpointer a_, gconstpointer b_ ) /* User-type dependent functions, for root/NickServ: */ static gboolean root_privmsg( irc_user_t *iu, const char *msg ) { + g_free( iu->irc->last_root_cmd ); + iu->irc->last_root_cmd = g_strdup( iu->nick ); + root_command_string( iu->irc, msg ); return TRUE; -- cgit v1.2.3