|
|
Joined: May 2005
Posts: 54
Babel fish
|
OP
Babel fish
Joined: May 2005
Posts: 54 |
Another quwstion.  Whem i opened and start my mirc i want to see a text like: "welcome Mlupu, do you want to connect to irc.network.irc (exemple) A window i want to opened and there i want to click on Yes or No button. To begin or not the connection  Thanks !
/server IRC.RomaniaIRC.ORG
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
I believe this is correct, but I don't use $input often, so I may have the syntax incorrect and I don't have mIRC here to look at.
on *:start: {
if ($input(Welcome Mlupu, do you want to connect to irc.network.com?,yes,no) == yes) { server irc.network.com }
}
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
on *:start: {
if ($input(Welcome $me $str($crlf $+ ,2) Do you want to connect to irc.network.com?, y,)) { server irc.network.com }
}
|
|
|
|
Joined: May 2005
Posts: 54
Babel fish
|
OP
Babel fish
Joined: May 2005
Posts: 54 |
/server IRC.RomaniaIRC.ORG
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Just an addition, you don't have to use it but I thought it would be a good idea to ask if you wanted to connect to the last server you were connected to.
on *:start: {
var %s = $gettok($gettok($window($active).title,2,44),1,41)
if ($input(Welcome $me $str($crlf $+ ,2) Do you want to connect to $+(%s,?), y,)) { server %s }
}
|
|
|
|
Joined: May 2005
Posts: 54
Babel fish
|
OP
Babel fish
Joined: May 2005
Posts: 54 |
yeap . Is more like it. i had try when i am connected i want to ask me if i want to login me. and is not work  on *:connect: {
if ($input($me $str($crlf $+ ,2) Do you want to login to irc.network.com?, y,)) { msg x@channels.network_name.com login $2- $?* }
}
/server IRC.RomaniaIRC.ORG
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
For that you would need:
On *:Connect: {
if ($server == someserver) { login stuff }
}
|
|
|
|
Joined: May 2005
Posts: 54
Babel fish
|
OP
Babel fish
Joined: May 2005
Posts: 54 |
the is not working  On *:CONNECT: {
if ($server == server_name.network_name.org) { msg x@channels.network_name.org login mlupu $?* }
}
/server IRC.RomaniaIRC.ORG
|
|
|
|
Joined: Feb 2006
Posts: 181
Vogon poet
|
Vogon poet
Joined: Feb 2006
Posts: 181 |
On *:CONNECT: {
if ($network == YourNetwork) { msg x@channels.network_name.org login mlupu $?* }
}
|
|
|
|
Joined: May 2005
Posts: 54
Babel fish
|
OP
Babel fish
Joined: May 2005
Posts: 54 |
is not working.. 
/server IRC.RomaniaIRC.ORG
|
|
|
|
Joined: May 2005
Posts: 54
Babel fish
|
OP
Babel fish
Joined: May 2005
Posts: 54 |
I made it. This code is working: on *:CONNECT: {
if ($input($me $str($crlf $+ ,2) Do you want to login toX ?, y,)) { .msg x@channels.network_name.org login $2- $?* }
if ($input($me $str($crlf $+ ,2) Do you want to be an IRCoperator ?, y,)) { .oper $2- $?* }
}
/server IRC.RomaniaIRC.ORG
|
|
|
|
|
|