/reconnect

Platform:  mIRC
Published  Mar 20, 2007
Updated  Mar 20, 2007
This snippet is used for reconnecting to a server that you have either just been in, or you can disconnect then reconnect. You can simply type /reconnect, or you can type /reconnect [-a|-c|-d] for more specific guidelines. alias reconnect {
if ($1) {
if ($left($1,1) == -) {
$iif($findtok(-a -c -d,$1,1,32),scon $+(-at,$calc($v1 - 1)) server,goto r2s)
}
else {
:r2s
var %i = 0
while (%i < $scon(0)) {
inc %i 1
scon %i
if ($network == $1) {
server
goto break
}
}
echo -ac info * /reconnect: not connected to server
halt
}
:break
}
else { server }
}

Comments

Sign in to comment.
toclafane1   -  Apr 04, 2011
thanks its working now
 Respond  
toclafane1   -  Apr 04, 2011
so above the alias
 Respond  
Jethro   -  Apr 04, 2011

Quote

could you make it so i can type !reconnect on my screen instead

toclafane1, just add this bit on top of the alias:

Code

 


Please note that everybody will be able to trigger it, since there is no check for a specific person to use it.
 Respond  
toclafane1   -  Apr 04, 2011
could you make it so i can type !reconnect on my screen instead of my bots cause i would like this for my bot but i want it so i can type !reconnect is that possible
 Respond  
LIQUID_NiTrO   -  Mar 22, 2007
or you could type /server with no parameters..
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.