| View previous topic :: View next topic |
| Author |
Message |
ZipCrash
Joined: 17 Feb 2007 Posts: 9
|
Posted: Wed Apr 11, 2007 6:16 pm Post subject: Auto-Join On Invite |
|
|
I've been all over google and these forums and I can't find a Auto-Join on Invite script. The one in the script list comes back with a 404 error. Can anybody help me out please?
PS:
I use private networks that had a bot invite you. So don't lecture me on auto-join on invite, I've seen all that forum posts on the subject.  |
|
| Back to top |
|
 |
Khisanth
Joined: 10 Jun 2004 Posts: 1541
|
Posted: Wed Apr 11, 2007 11:57 pm Post subject: |
|
|
| Code: |
Xchat::hook_print( "Invited", sub {
my $channel = $_[0][0];
Xchat::hook_timer( 0, sub {
Xchat::command "JOIN $channel";
return Xchat::REMOVE;
}
return Xchat::EAT_NONE;
}
);
|
In Perl.
You can ignore the "This script did not call register" bit in the plugins and scripts window.  |
|
| Back to top |
|
 |
ZipCrash
Joined: 17 Feb 2007 Posts: 9
|
Posted: Fri Apr 13, 2007 7:00 pm Post subject: |
|
|
appreciate it however...
Error loading '/home/user/.xchat2/autojoin.pl':
syntax error at (eval 4) line 7, near "}
return" |
|
| Back to top |
|
 |
Khisanth
Joined: 10 Jun 2004 Posts: 1541
|
Posted: Fri Apr 13, 2007 10:38 pm Post subject: |
|
|
| Code: |
Xchat::hook_print( "Invited", sub {
my $channel = $_[0][0];
Xchat::hook_timer( 0, sub {
Xchat::command "JOIN $channel";
return Xchat::REMOVE;
});
return Xchat::EAT_NONE;
}
);
|
Oops
It was missing a ); |
|
| Back to top |
|
 |
ZipCrash
Joined: 17 Feb 2007 Posts: 9
|
Posted: Fri Apr 13, 2007 10:44 pm Post subject: |
|
|
| ah no worries I found one inside another script and used that. Thanks though |
|
| Back to top |
|
 |
dark-freedom
Joined: 14 Jul 2007 Posts: 1
|
Posted: Sat Jul 14, 2007 10:56 pm Post subject: |
|
|
I'm searching for a similar script.
Everyone is to be able to invite me, but only by Chanserv (or other Servicebots) the script should be actively.
I hope you can understand my bad English.
Thanks for you help. |
|
| Back to top |
|
 |
|