Example (to execute a code every 30 minutes):
bind time <flags> <mask> <proc>
proc-name <minute> <hour> <day> <month> <year>
Description: allows you to schedule procedure calls at certain
times. mask matches 5 space separated integers of the form:
"minute hour day month year". minute, hour, day, month have a
zero padding so they are exactly two characters long; year is
extended to four characters in the same way.
Module: core
Code: Select all
bind time - "30 * *" intbans:bind
proc intbans:bind {min hour day month year} {
<your_code_to_loop_through_the_internal_bans_goes_here>
}
-------------------banlist [channel]
Returns: a list of global bans, or, if a channel is specified, a
list of channel-specific bans. Each entry is a sublist containing:
hostmask, comment, expiration timestamp, time added, last time
active, and creator. The three timestamps are in unixtime format.
Module: channels
2- Channel specific bans that apply only to a specific channel.killban <ban>
Description: removes a ban from the global ban list
Returns: 1 on success; 0 otherwise
Module: channels
-------------------killchanban <channel> <ban>
Description: removes a ban from the ban list for a channel
Returns: 1 on success; 0 otherwise
Module: channels
Code: Select all
bind time - "30 * *" intbans:bind
Code: Select all
bind time - "30 * *" intbans:bind
bind time - "00 * *" intbans:bind
Code: Select all
proc kill:bans {min hour day month year} {
foreach chan [channels] {
killchanban $chan 1
}
Code: Select all
proc kill:bans {min hour day month year} {
foreach x [banlist #somechan] {
killchanban #somechan [lindex $x 0]
}
}