diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-27 14:05:38 -0400 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-27 14:05:38 -0400 |
commit | 74f1cdef999356e40e3fa3b6a2d89876b6c0c303 (patch) | |
tree | 2e8c30033bc9358dd5a0cc4c7ba68ecc9ad992d2 /irc_user.c | |
parent | 280c56a7b24dc08b35a1ecd98c8f4b61435d1100 (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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |