From: Andreas Scherbaum Date: Fri, 20 Jan 2012 20:52:32 +0000 (+0100) Subject: - fix debugging: really output a join message only if the session joins the channel X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=92088be6054557d960770a08bd558b9bd4073605;p=docbot.git - fix debugging: really output a join message only if the session joins the channel --- diff --git a/docbot.pl b/docbot.pl index 9c5600c..f60139a 100755 --- a/docbot.pl +++ b/docbot.pl @@ -1220,8 +1220,8 @@ sub on_connect { my $channel_session = config_get_key3('channels', $channel, 'session'); if ($channel_session == $session) { push(@join_channels, $channel); + print_msg("assign irc channel '$channel' to session '$session'", DEBUG); } - print_msg("assign irc channel '$channel' to session '$session'", DEBUG); } print_msg("Channel list for session $session: " . join(", ", @join_channels), DEBUG);