mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2011
Posts: 53
S
Babel fish
OP Offline
Babel fish
S
Joined: May 2011
Posts: 53
Is it possible to join multiple password-protected channels on invite with multiple nicks?

eg site1 invites user 1
site2 invites user 2
etc

.. and to auto join the channels with a password on bot invite.


Joined: Mar 2004
Posts: 526
Fjord artisan
Offline
Fjord artisan
Joined: Mar 2004
Posts: 526
yes it is possible.

you need to write a script that will process 'on connect' event.

since, on connect the network name is in $network, you can
test that variable in script, and if its (base on you naming):
if ( $network == site1) {
do the /joins needed for this net here
}
if ($network == site2) {
do the /joins needed for this net here
}


notes:
see /help on connect and /help /join for more info.
for /join (from help /join}:
Some channels may also have keys ie. a password, which you need to specify when using the /join command.
example: /join #irchelp trout

If this is not enough information to get you started, let me know, will put up a pastebin example of how to do the code.






Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!
Joined: May 2011
Posts: 53
S
Babel fish
OP Offline
Babel fish
S
Joined: May 2011
Posts: 53
Thanks for the reply

How would I specfiy:

i.) The nick of the inviting bot;
ii.) The nick I would like to join the channel on invite.

eg > bot1 invites you to join #chan1

if I have multiple mirc nicks on the same network, how do I specify which nick responds to the invite and joins the chan?


Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Code:
on *:invite:*: {
 if (%ajinvite == on) && ($network == NETWORK) && ($nick == NICK) join #CHANNEL PASSWORD
}

Replace NETWORK , NICK , CHANNEL , PASSWORD to fit your needs. You also need to enable the code. /set %ajinvite on/off , you only enable it on the "nick" you want to join on the invite.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: May 2011
Posts: 53
S
Babel fish
OP Offline
Babel fish
S
Joined: May 2011
Posts: 53
Thanks sparta smile

Does the 'nick' variable refer to the nick of the inviting bot, or to the nick I want to invite?



Link Copied to Clipboard