Did you know? [random xchat facts]
Double middle-clicking a nickname in the text area will select it in the userlist.
xchat.org
XChat IRC Client
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Auto-Join On Invite

 
Post new topic   Reply to topic    xchat.org Forum Index -> Scripts and Plugins
View previous topic :: View next topic  
Author Message
ZipCrash



Joined: 17 Feb 2007
Posts: 9

PostPosted: Wed Apr 11, 2007 6:16 pm    Post subject: Auto-Join On Invite Reply with quote

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. Smile
Back to top
View user's profile Send private message
Khisanth



Joined: 10 Jun 2004
Posts: 1541

PostPosted: Wed Apr 11, 2007 11:57 pm    Post subject: Reply with quote

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. Smile
You can ignore the "This script did not call register" bit in the plugins and scripts window. Wink
Back to top
View user's profile Send private message
ZipCrash



Joined: 17 Feb 2007
Posts: 9

PostPosted: Fri Apr 13, 2007 7:00 pm    Post subject: Reply with quote

appreciate it however...

Error loading '/home/user/.xchat2/autojoin.pl':
syntax error at (eval 4) line 7, near "}
return"
Back to top
View user's profile Send private message
Khisanth



Joined: 10 Jun 2004
Posts: 1541

PostPosted: Fri Apr 13, 2007 10:38 pm    Post subject: Reply with quote

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 Razz
It was missing a );
Back to top
View user's profile Send private message
ZipCrash



Joined: 17 Feb 2007
Posts: 9

PostPosted: Fri Apr 13, 2007 10:44 pm    Post subject: Reply with quote

ah no worries I found one inside another script and used that. Thanks though
Back to top
View user's profile Send private message
dark-freedom



Joined: 14 Jul 2007
Posts: 1

PostPosted: Sat Jul 14, 2007 10:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    xchat.org Forum Index -> Scripts and Plugins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group