this is probably going to b my last snippet for a little while. it is just a sign in snippet that will open a dialog that will ask you to sign in on connect. and yeah this is pretty pointless compared to a AUTO-ID but it still works and is efficient.
dialog SI {
title "Sign In"
size -1 -1 83 53
option dbu
edit "", 1, 2 2 79 10, center read autohs
edit "", 2, 2 16 79 10, pass center autohs
button "Login", 3, 23 28 37 10
button "Close IRC", 4, 23 41 37 10
}
on *:dialog:si:*:*:{
if ($devent == init) { did -ra si 1 $me }
if ($devent == sclick) {
if ($did == 3) {
ns identify $did(2)
dialog -x si si
}
if ($did == 4) { exit -n }
}
}
on *:connect:{
dialog -m si si
}
menu * {
.Sign In: dialog -m si si
}