mIRC Homepage
Posted By: Albano Last Server Connection - 10/12/03 12:39 AM
Hi
I need a simple code for show on status echo -s last server connection
multiserver support

Thanks
Posted By: ATMA Re: Last Server Connection - 10/12/03 12:40 AM
on *:connect: { set %lastcon $server }

alias lastconnection { return %lastcon }
Posted By: Albano Re: Last Server Connection - 10/12/03 12:51 AM
ATMA Thnx, but really i not see nothing on status i connect/disconnect and nothing it happens

i use on status some info, like current name, time, tips, and i need to show last server, when i opened mIRC but with that code frown not saw null
Posted By: neophyte Re: Last Server Connection - 10/12/03 01:04 AM
/help on START
Posted By: KingTomato Re: Last Server Connection - 10/12/03 01:05 AM
on *:DISCONNECT: {
/set %lastconnection $server
/echo -s Last server: $server on port $port
}
alias lastconnection { return %lastconnection }
Posted By: ATMA Re: Last Server Connection - 10/12/03 01:06 AM
finsh the code ;p that just returns the last known connect try something like erm...

on *:start: {
echo -a Last Known Connection: $lastcon
}

or u can do something like:

on *:connect: {
//.titlebar :: $!me :: Last connection: $!lastconn ::
set %lastcon $server
}
Posted By: overdose Re: Last Server Connection - 10/12/03 06:53 AM
Quote:
on *:DISCONNECT: {
/set %lastconnection $server
/echo -s Last server: $server on port $port
}


Could even use;

on *:connect: {

but yes the use of variables is needed
© mIRC Discussion Forums