This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Requests: ignore user scripts

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
p
pavel_kbc
Voice
Posts: 23
Joined: Thu Dec 28, 2006 2:17 pm

Requests: ignore user scripts

Post by pavel_kbc »

hello. can anyone make scripts like this?

<x-r00t-x> perlbot, ignore lord 20000
<perlbot> lord (*!*@*.bois.qwest.net) is being ignored for 1 week, 6 days, 21 hours, 20 minutes
so the bot cant see users command and logs . etc

EDIT: i saw this on a perl bitch bot . :roll:
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind pub n|n !ignore ignore:user

proc ignore:user {nick uhost hand chan arg} {
 if {[scan [join [lrange [split $arg] 0 1]] {%s %s} n t] != 2} {return 0}
 if {![isignore [set h [maskhost [getchanhost $n $chan]]]]} {
  newignore $h $hand "PUBLIC CMD" $t
  puthelp "privmsg $chan :$n ($h) is being ignored for [duration [expr {$t*60}]]."
 }
}
You need to be an owner (global or channel-specific +n flag) to be able to use the !ignore command.
Last edited by Sir_Fz on Tue Jan 02, 2007 8:29 pm, edited 1 time in total.
p
pavel_kbc
Voice
Posts: 23
Joined: Thu Dec 28, 2006 2:17 pm

Post by pavel_kbc »

umm its seem its not working to me.

and please change public command to !ignore

thank you.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Post updated.
p
pavel_kbc
Voice
Posts: 23
Joined: Thu Dec 28, 2006 2:17 pm

Post by pavel_kbc »

Thank you :D
Post Reply