mIRC Homepage
Posted By: ThE_mASk /server - 13/03/03 08:48 PM
Could you give me a simple script that I can use to redirect a the user using it to a specific server. For example the server I want is irc.server.com and when a user using my script type /server irc.another-server.com, it connects him to irc.server.com.
Posted By: theRat Re: /server - 13/03/03 09:32 PM
Why would anyone use script which allows only one server to be used?
Posted By: ThE_mASk Re: /server - 13/03/03 09:35 PM
Well I have my reasons smile
And don't get me wrong ! It is not to make my server full of clients or something like that...
Just I need help with this one... pLz
Posted By: MonoSex Re: /server - 13/03/03 10:01 PM
Code:
alias server { server your.server.com }
Posted By: ThE_mASk Re: /server - 13/03/03 10:07 PM
well yes this is one way to solve the problem but it is not what I am looking for frown
even with this if I add server to the servers.ini and hit the Connect button of mIRC it will not redirect me...

Is there something else to help me...
Posted By: Othello Re: /server - 13/03/03 10:44 PM
Try this in a script

On *:Connect: /server your.server.com
Posted By: _D3m0n_ Re: /server - 14/03/03 12:03 AM
try changing what the server alias means by defualt like
alias server server yourirc.server.net

that way whenever they type /server blah blah blah it automatically tosses out thier cerver to connect to name and goes right to urs .....
that may just do what ur looking for ... if not sorry for the interruption
Posted By: Watchdog Re: /server - 14/03/03 08:22 AM
I wrote a full script that can work well with most IRCd's though, while there's no actual limit, it is specifically made for one network. I think it's a good concept.
Posted By: theRat Re: /server - 14/03/03 02:03 PM

on *:connect: if ( $server != your.server.com ) server your.server.com
Posted By: flup Re: /server - 14/03/03 03:39 PM
on *:connect: {
if ($server == irc.server.com) { /server irc.server.com }
else { /server irc.server.com }
}
Posted By: Aubs Re: /server - 14/03/03 04:03 PM
/me looks @ Flup...

;When you connect...
on *:connect: {
;if the server you are on is irc.server.com then change to irc.server.com
if ($server == irc.server.com) { /server irc.server.com }
;Otherwise connect to irc.server.com
else { /server irc.server.com }
}

so this would put you into a continuous loop: forever connecting to irc.server.com, disconnecting and connecting again

10 connect to irc.server.com
20 go to 10
© mIRC Discussion Forums