allowing buttbot to recieve invitations

This commit is contained in:
thomas.figg 2009-03-11 00:05:15 +00:00
parent 2195db8c1b
commit a3f5795ef3
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ ident = null
gecos = heh
channel = #buttbottest
debug = yes
invite = yes
pass = SOMESECRET
friends = floWenoL
enemies =

View File

@ -91,7 +91,12 @@ sub process_line {
} elsif ($command eq 'PRIVMSG') {
cmd_privmsg($from, @data);
} elsif ($command eq 'INVITE' && $CONF{'invite'} ) {
my $c = $data[1];
$c =~ s/^://;
_send("JOIN $c");
}
}
sub cmd_connect {