allowing buttbot to recieve invitations
This commit is contained in:
parent
2195db8c1b
commit
a3f5795ef3
|
@ -5,6 +5,7 @@ ident = null
|
|||
gecos = heh
|
||||
channel = #buttbottest
|
||||
debug = yes
|
||||
invite = yes
|
||||
pass = SOMESECRET
|
||||
friends = floWenoL
|
||||
enemies =
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue