#!/usr/bin/perl
# keitairc
-# $Id: keitairc,v 1.19 2004-04-08 15:27:57 morimoto Exp $
+# $Id: keitairc,v 1.20 2004-06-07 01:27:57 morimoto Exp $
#
# Copyright (c) 2003 Jun Morimoto <morimoto@xantia.citroen.org>
# This program is covered by the GNU General Public License 2
# Depends: libjcode-pm-perl, libpoe-component-irc-perl,
# liburi-perl, libwww-perl, libappconfig-perl
-my $rcsid = q$Id: keitairc,v 1.19 2004-04-08 15:27:57 morimoto Exp $;
+my $rcsid = q$Id: keitairc,v 1.20 2004-06-07 01:27:57 morimoto Exp $;
my ($version) = $rcsid =~ m#,v ([0-9.]+)#;
use strict;
sub on_irc_join{
my ($kernel, $who, $channel) = @_[KERNEL, ARG0, ARG1];
$who =~ s/!.*//;
+
+ # chop off after the gap (bug workaround of madoka)
+ $channel =~ s/ .*//;
+
$channel_name{$channel}++;
unless ($who eq $config->irc_nick) {
&add_message($channel, undef, "$who joined");