aboutsummaryrefslogtreecommitdiffstats
path: root/irc_user.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-03-27 14:05:38 -0400
committerWilmer van der Gaast <wilmer@gaast.net>2010-03-27 14:05:38 -0400
commit74f1cdef999356e40e3fa3b6a2d89876b6c0c303 (patch)
tree2e8c30033bc9358dd5a0cc4c7ba68ecc9ad992d2 /irc_user.c
parent280c56a7b24dc08b35a1ecd98c8f4b61435d1100 (diff)
irc_usermsg() works a little bit again. Have to figure out how and where
to restore multiline support though.
Diffstat (limited to 'irc_user.c')
-rw-r--r--irc_user.c5
1 files changed, 4 insertions, 1 deletions
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;