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.

Ignore Event Command exist?

Help for those learning Tcl or writing their own scripts.
Post Reply
j
juanamores
Master
Posts: 317
Joined: Sun Mar 15, 2015 9:59 am

Ignore Event Command exist?

Post by juanamores »

Is there an event that detects when the bot adds or deletes an ignore?
Event command, not party line.
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks :)
User avatar
Get_A_Fix
Master
Posts: 206
Joined: Sat May 07, 2005 6:11 pm
Location: New Zealand

Post by Get_A_Fix »

No event driven procedure but that doesn't mean you couldn't make one.

You can have a proc check ignorelist every x-min and if a new hostmask and expiration are matched then putlog or puthelp to channel.

Something like

Code: Select all

foreach ignore [ignorelist] {
  set ignoremask [lindex $ignore 0]
  set ignoreexpire [lindex $ignore 2]
  set ignoreexpire_ctime [ctime $ignoreexpire]
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
j
juanamores
Master
Posts: 317
Joined: Sun Mar 15, 2015 9:59 am

Post by juanamores »

Good idea Get_A_Fix!
I'll work on it :)
Thank you
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks :)
Post Reply