This will create a dialog that lets you connect to a new server withought having to go to the options menu... it's not much but I made it for a friend and I decided to submit it to this site... Usage: Right-click in the channel or the Server window
menu status,channel {
New Server: dialog -md Connect Connect
}
dialog Connect {
title "Connect to a new Server"
size -1 -1 300 200
text "Connecting to a new server, fill in the form below:",1,10 15 300 15
button "Connect",2,100 150 50 25
button "Cancel",3,150 150 50 25,cancel
edit "",4,60 50 150 20
text "Server: ",5,20 52 40 15
text "ex: irc.p2pchat.net",6,65 70 100 15
text "Port: ",7,20 92 30 15
edit "",8,60 90 50 20
text "Default: 6667",9, 115 92 90 15
check "Connect in a new window?",10, 20 115 150 15
}
on *:DIALOG:Connect:init:0: {
did -c Connect 10
did -a Connect 4 %server
did -a Connect 8 %port
}
on *:DIALOG:Connect:sclick:2: {
if (!$did(Connect,4)) {
did -a Connect 4 You need a server!
}
else {
if ($did(Connect,8)) {
if ($did(Connect,10).state == 1) {
/server -mp $did(Connect,4) $did(Connect,8)
}
else {
/server -p $did(Connect,4) $did(Connect,8)
}
}
else {
if ($did(Connect,10).state == 1) {
/server -mp $did(Connect,4) 6667
}
else {
/server -p $did(Connect,4) 6667
}
}
}
%server = $did(Connect,4)
%port = $did(Connect,8)
dialog -x Connect
}