Nice!
Only thing I can suggest to change is, give the test fields the "autohs" option.
eg. edit "",6, 145 22 50 10, autohs
This is so you can put more text into them. I had a little trouble fitting some text into one of the text fields. :)
Other than that - awesome! :)
EDIT: Maybe add autoident functionality?
Thanks to Sasza, I know what the bug is xD Silly mistake with the very first channel you put in. I'll edit a bugfix and let you know tonight.
@Firstmate: Yep. I'm working on that too. That's actually a really easy one to write up. :)
As for passwords to channel, just put them in the channel editbox after the channel name.
e.g. #channelwithpassword password
If you add that, it will work.
Quick question for other lurkers, should I bother making a password field for channels? Or just keep it like that (And edit the hover-over help so it actually says to do that.)
Hmm, i've done a fair bit of bugtesting, but it's kind of hard because we all have our clients set up differently. Shouldn't make much of a problem though.
Could you copypaste the ini file it made here? If you can't find it, it's in the mirc settings folder. Like... Documents and settings/application data/mirc/.
Also, I haven't coded in a password for the channel... I'll add that tomorrow after uni =) Kinda tired and working on something else now, should probably get some sleep T__T
EDIT: Actually. Probably best if you didn't. Send it via personal message with server and password fields removed :)
If I get another person to say that keeping the order is more important, i'll chuck it into the actual snippet. Should be obvious which part to substitute for the following code.
;If the delete channel button is clicked, delete the current channel in the combo box from the Settings.ini file
if ($did == 52) {
if ($did($dname, 45) != $null) {
set %channels $rs(%tab.scd01, Channels)
set %n $did($dname, 45).sel
dec %n
$rms(%tab.scd01, Room $+ %n)
did -d scd01 45 $did($dname, 45).sel
dec %channels
set %s %n
while (%n < %channels) {
inc %s
writeini Settings.ini Server $+ %tab.scd01 Room $+ %n $rs(%tab.scd01, Room $+ %s)
inc %n
}
$rms(%tab.scd01, Room $+ %n)
unset %s
writeini Settings.ini Server $+ %tab.scd01 Channels %channels
unset %channels
unset %n
}
}
K done. :)
For deleting channels, which do you guys think is better?
Lets say you have 10 channels. You wish to delete the 5th channel.
Let me know if someone would like the other option, i'll paste it here, letting you know what part to swap out.
Auto Connect/Join/Identify v1.0 [ source: http://www.hawkee.com/snippet/565/ ] had a lot of features and was easy to use, but unfortunately it had a lot of bugs and was written REALLY badly (Sorry to the author, but come on, hard coding 50 join statements for 5 servers each with 10 channels each is absurd).
Hmm. I quite liked this snippet, but I got irritated at a few bugs and the coding style, so I ended up rewriting it.
What's the general consensus on submitting other peoples code if it's been majorly overhauled? By Majorly overhauled, I mean it's now 10kb instead of 24kb - with no loss to functionality - with many bug fixes and some other improvements.
Do I post it here, or do I submit my own and give this guy partial credit?
An efficient, recursive mass-mode script which accumulates users as arguments to the aliases and applies the mode to them all at once, in groups of the maximum allowed by server, to prevent spamming up the channel. It also doesn't apply modes to those which already have it (i.e. Won't voice users who already have voice).