I've had this come up in a developer interview before, so it's something to be aware of. Just don't forget the lower bounds!
I'm a little unclear what this does. Can you elaborate more and explain each block of code?
Some good basic examples of perl. It's been years since I've used perl, but it was my introduction to web development.
Some nice perl examples. It's been years since I've done any perl.
Updated a workaround on xchat users.
Script was updated: Makes input really simple and clean.
Updated Code to better fit my needs.
Has been majorly updated to work and tested fully. @Evil_Eric let me know how it goes. :)
I will be updating a few other of my scripts that use the config file now that I understand it more.
It also now should create a file if not go create pmblock.conf under your irc install folder.
Interesting. So you use this to save code you'd like to use?
Hard to consider a practical application of this. Maybe a web tool to guess registrars for domains?
@GrimReaper I added X-Chat to our platform list so you can label this better.
On Linux: Remove the System.pl script as it retains to Windows. Also it appears Ubuntu dropped libhtml on 12.10 so re-add it:
Wow, this brings back memories. I haven't done perl for years.
Updated the regex a bit.
@ cmrocks : thanks
Yes it works with both Linux and Windows:
I use Hex Chat for Windows MiNdFrEaKeR you can download here: http://www.hexchat.org/
For Perl: http://www.activestate.com/activeperl and choose your version of Windows, follow the install.
For TCL: http://www.activestate.com/activetcl
For Python: http://www.activestate.com/activepython
Your only need "ActivePerl" and Hex Chat installed in order for this to work, the regular xchat also works; just make sure you install "ActivePerl".
I didn't worked much with xChat. Can you tell me how to install and run this script on Windows step by step. I get an error of some plugin.
Dunno, but doesn't work for me. It does not create conf file in .xchat2 directory. :(
Majki redownload the script with the updates made, I can confirm it works on my Ubuntu box just fine as well.
Well, it still doesn't work - pmblock.conf is not created in Xchat's profile.I'm not sure, maybe you created this for Windows? On Windows writing on root partition is okay, but not on Linux.
Update: Updated Ban Script to write its config file and also added the same to the pm blocker.
Minor Fix: Updated Kickban to create a file if its not written automatically.
Majki it has been fixed so it remembers any bans after xchat restart, also shows a pm blocked in the main window.
I updated script, no extra file was created. Could you make info about "your pm was blocked" in the PM one, not in the main chat window? Ppl might miss it. My .xchat2 profile in Ubuntu:
Right Majki that's just a comment in my line, I will fix the comment now, still try creating the file pmblock.conf under the xchat directory where your scripts should be located and try it then. You should see data writing to the pmblock.conf every time you issue a command. I will get to this script soon, just busy atm. >>
I'm not a coder, but in code you have pmblock.conf and pmblock.txt at the same time.
No pmblock.conf in my .xchat2 profile :(
I will take a look at it when I can get a chance Majki .
I have a feeling its not writing the pmblock.conf, verify in your xchat directory that the config file is there and is writing the data. You might have to create the pmblock.conf file and then try it. Let me know how that goes.
I'm a n00b when it comes to programming. So - why this script/plugin forgets my whitelist after Xchat restart?
Arch Linux here, 32bits.