Looking for a Timed Ban Script and also another, possibly

Discussion about Perl, TCL or Python scripts and C/C++ plugins (using and writing them).

Looking for a Timed

Postby Salacious » 21 Jan 2010 20:51

I'm more accustomed to mIRC with NNS, though I'm currently only able to use an Ubuntu computer, so it's xchat for me. NNS has a timed ban script (enter the amount of time in minutes you want someone banned, and after that amount of time, it'll remove the ban for you). I've been trying to find a script for xchat that does this but have had no luck so far.

Also, if at all possible, NNS also had a function that let you put in a custom kick message when you chose to kick or kickban someone from right-clicking their username. If there's a script that also allows this for xchat, I'd love to be able to use that as well. (Again, I've had no luck finding it myself!)

Thanks in advance for any help, everyone. I really appreciate it. :)
Salacious
 
Posts: 3
Joined: 21 Jan 2010 20:45

Postby LifeIsPain » 22 Jan 2010 01:43

For the first, see: b0at's kbtemp script

For the second, the Kick button below the userlist will do this for, kick the specific user from the channel with a supplied reason. You can implement this in right click by following the instructions provided on this help page about the userlist popup menu.
LifeIsPain
 
Posts: 453
Joined: 25 Aug 2005 06:36

Postby Salacious » 22 Jan 2010 06:34

Thank you for the links. :) Both are very helpful. I don't suppose there are any scripts like the first you linked that go by minutes, rather than seconds, though?
Salacious
 
Posts: 3
Joined: 21 Jan 2010 20:45

Postby LifeIsPain » 22 Jan 2010 08:19

That is the most complete temporary kick ban script available. Modifying it to switch completely to minutes would require multiple changes for completeness (changing strings from seconds to minutes, adding in some multiplication, changing the default value from 80 to something smaller, like 3).

The simpler solution is to just add in a change that allows for "3m" to be the specified time rather than 180. For this change, take the following line:
Code: Select all
   if( $time =~ /\D/ ) {
and change it to
Code: Select all
   if ( $time =~ /^(\d+(?:\.\d+)?)m/ ) {
      $time = int(60 * $1);
   }
   elsif( $time =~ /\D/ ) {

This will work when using /kbtmp, but not when setting config values.
LifeIsPain
 
Posts: 453
Joined: 25 Aug 2005 06:36

Postby Salacious » 22 Jan 2010 08:29

Ah, alright. Thank you!

(I'm guessing that other minute specifications would work as well, and not just "3m"? Sorry for the dumb-seeming question, but I just want to be sure I understand.)
Salacious
 
Posts: 3
Joined: 21 Jan 2010 20:45

Postby LifeIsPain » 22 Jan 2010 10:10

Yes, anything, including (but not limited to) 2.5m, 15m, and 23823m
LifeIsPain
 
Posts: 453
Joined: 25 Aug 2005 06:36


Return to Scripts and Plugins

Who is online

Users browsing this forum: Google [Bot] and 0 guests