If you modify it to make it more efficient, that would be phenomenal. You should definitely let me have a look in that case so I can learn from it; I'm still very much just an occasional hobbyist :) . Thanks!
In future scripts I'll look into merging text events. It just seems weird to me that having a script always trigger on every text event, even if it's only one line, would be more efficient. I'll also look into hash. It's something I've never seen or heard of.
I agree, admin. I run a forum along with a channel, and the only posts I ever delete are those of spambots (backlinks and whatnot). When I decide to go on Hawkee when I'm actually awake, I'll make a point of cleaning up this thread, though, now that this has all been said and done. Just for cleanliness's sake.
@ Mosh: I will definitely look at those identifiers and see if I can't work them into the script. I also wasn't aware it was common for mode/line limits to be stringent on servers. Dynastynet just underwent a system change, so perhaps I should find out and make sure.
Wow, thanks for all the comments, guys! I really appreciate all the constructive advice I got, and I'm glad you're all enjoying the script so much. Please feel free to spam up my other scripts as well!
Dunno what $modespl is, but Jethro's always been a big help before so I'll give it a look sometime. I'm sure it can be incorporated.
Thanks for the comment, Litch, and glad you like the script. I was a tad surprised to see 52 notices on this script, but I suppose I should leave these comments here until some moderation can be done. Far as I can see, nothing was done about Dean.
Sunny, that image is perfect, and it's so true (at least on my goofy channel). I've half a mind to put it up on the Mibbit client we have on the site as a joke.
Pretty much all the rest of you should A) stop trolling, B) stop being so trollable, and C) gtfo my snippet.
A lot of people post their "ingenious" auto-kick-all scripts and get responses typically along the lines of, "this is actually a get-yourself-banned-from-your-server script." The fact is that some of us like power a little too much and enjoy the prospect of affecting one's entire channel, users all, with a couple keystrokes. It just doesn't stop being funny, at least until you get booted from the..
Aye, this was the first script I'd written using files of any sort. Thanks for noticing :P .
Whole lines needn't be erased in this script because of that dash you noted, jaytea. That dash, combined with the lack of a third value in the command, created the problem Back2Life had. Because it only takes the first and second tokens in a line, divided by spaces, even if the line is
-fgh, that part remaining of the "old" line will not affect the output - as long as there is in fact an address and a name as the first two tokens of the line :P . I've made it so the file is not written to otherwise any longer, so the problem should vanish, but I would be very interested in learning how to overwrite a full line.I will also look into /write and $read. I used them sparingly, because I couldn't find much for assistance on mIRC's help file or other resources (or examples in scripts I currently use), and because I don't believe it's possible to use /write to actually overwrite a certain line (or part of it, as it were). Even removing a couple lines to avoid opening and closing a file repeatedly is something worth doing. I'll also look into /filter; I can't say I've ever even heard of it before.
Thanks for your comments, jaytea and Jethro.
Thank you. And yes, your problem was caused by the command syntax thing. I've updated with a return for that mistake that'll prevent the file from buggering up if anyone makes the same mistake you did. I recommend you overwrite the script with the new version now here. Thank you for pointing it out, and I hope it continues to work properly for you.
Not sure what that dash replacing the first character in the name is about. I haven't had the issue, but will look into it. I wonder if you could send me a log of your entire test of the script from start to finish, as well as ID.txt.
The syntax to change a name associated with an address (or add a new address to the list) is
!id <nick> <name>
I will put in a return for $3 == $null. That's the reason you were associated with a blank name.
Might not have been descriptive enough about what the script does. It associates a name with an address so that, instead of running a /whois on someone whose identity you are unsure of and hoping to recognize the address from before, you can instead call up a name - either automatically or manually defined - previously associated with the user's host. For instance, my usual nick is Yitik. If I popped on your channel as Yitik, I would be defined as such, and then if I later came in as an unregistered nick of another user who frequents your channel, you could easily see just who I am in plain English.
After looking for a script to do this for me for a while, finally gave myself a slap and wrote it myself. If your channel's userbase is anything like mine, you'll have morons entering your channel all the time pretending to be some other schmuck who never registered his nick, or someone who is otherwise not himself. So you either have to put up with his idiocy, kick him, or look through your logs..
I've only messed with this for a few minutes, but I think my chat will love it. They've been asking me for something like this ever since they were exposed en masse to GeniusBot, and I've told them that it's not possible. Well, I guess it is. I wish I understood sockets better. A very amusing script, and an easily run one as well; I'll throw caution to the wind and give you 10/10, because you certainly deserve it for even attempting the creation of something this comprehensive.
Fixed the timers. In my defense, I'm running the script on a bot, and I just assumed people would be doing the same. Since the only time I'll ever be looking at the window is when something isn't working, echoes are usually a good thing ;) .
Abstaining from using square brackets to identify variables wasn't working for me. In fact, this is one of the recurring sources of my headaches.
On the opting in command, honestly, none of my chat has accidentally said "oink" or something to that effect to start a message during the ten seconds or so before a game actually starts, so I'll personally be leaving it. I'll change the code here on Hawkee so that it includes the exclamation mark.
After playing dice poker against the AI in The Witcher, I knew I'd found a game I could adapt to IRC with the skills I currently have with its scripting language. Dice poker is what it sounds like: instead of cards, you use dice, betting and raising, rolling and re-rolling to try and get the highest-scoring "hand" to take the pot. It's easier to play than its more well-known counterpart, which means..
I'm a major newb to perl and mIRC scripting, and likely will be for a while as I'm mostly just blundering through things and learning as I go rather than actively studying how to work the language. So, I know there will be some inefficiencies with this snippet, and maybe even a bug or two (hopefully nothing too serious...I've used it for a while, never had troubles), so if you find anything and have..