diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-11-20 20:25:44 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-11-20 20:25:44 +0000 |
commit | bb151f7aad467bf29c6e5ca552088f7f0b8ec876 (patch) | |
tree | ae64dfee90c7beec134cb6a1f2832eb0ec095996 /irc_send.c | |
parent | d68365c5a799556a9375ac7e08d78d7dc80010ce (diff) |
Added irc_channel_with_user() function to find a suitable channel to show
a user's message in, instead of just &bitlbee by default.
Diffstat (limited to 'irc_send.c')
-rw-r--r-- | irc_send.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -126,8 +126,8 @@ void irc_usermsg( irc_t *irc, char *format, ... ) { if( iu->last_channel->flags & IRC_CHANNEL_JOINED ) ic = iu->last_channel; - else if( irc->default_channel->flags & IRC_CHANNEL_JOINED ) - ic = irc->default_channel; + else + ic = irc_channel_with_user( irc, irc->root ); } if( ic ) |