aboutsummaryrefslogtreecommitdiffstats
path: root/irc_send.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_send.c')
-rw-r--r--irc_send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/irc_send.c b/irc_send.c
index eb22139d..02f4b5d4 100644
--- a/irc_send.c
+++ b/irc_send.c
@@ -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 )