Is there a way to have the proc bound to a nick or channel. I have a BIND -|- NEW ms:newdir statement but I am in mulitple channels that I need that for. I would like to have basically the same BIND statement but change ms:newdir to ms:newdir1 ,etc.
proc ms:newdir {nick uhost hand chan arg} {
set chan [string tolower $chan]
if {[channel get $chan pretime]} {
global mysql_ db_
maybe something like :
if {$nick == intel233} {
Also I am trying to get it say BACKFILL if older then a certain time.
set time1 [unixtime]
incr time1 -$timestamp
set ago [duration $time1]
set after [clock clicks -milliseconds]
set limit [expr $now * 3600]
if {$ago > $limit} {
putquick "PRIVMSG $chan :\[BACKFiLL] -- $rls was pred $ago ago"
} elseif {$nuke == "0"} {
putquick "PRIVMSG $chan :\[\002 \00307PRETiME\003 \002\] ( \00310$type\003 ) -- $rls was pred $ago ago"
} elseif {$nuke == "1"} {
putquick "PRIVMSG $chan :\[\0034NUKE\003\] ( \00310$type\003 ) -- $rls \002(\002 \037\0034$reason\037\003 \002)\002 was pred \0030::\003 \002( [clock format $timestamp -format %d.%m.%Y] )\002 \002( [clock format $timestamp -format %H:%M:%S] ) -- pred $ago ago"
} else {
But that is not working. I want it to be like 12hr or later it says backfill.
Well, I for one don't really understand your questions.
A bind is a means of getting an irc or bot event to trigger the execution of tcl code.
There are many bind types (I think 44 at the last count), all explained in tcl-commands.doc or tcl-commands.html supplied with your bot installation.
Some of the bind types permit the inclusion of a mask within the bind statement. For example, a JOIN bind type has a mask which is matched against "#channelname nick!user@host". Therefore the bind statement can be worded in such a way as to only execute for a specific channel or hostmask or both.
Your first question relating to 'BIND -|- NEW ms:newdir' does not indicate a bind type, so I do not have an answer.
I guess I'm just another geek without a life, answering non-sensicle questions on christmas day.
OK first off just cause you don't understand the question doesn't make it non-sensicle.
I am in multiple channels and have a BIND ms:NEW and then the proc ms:newdir . The channels announce in the same way but different pre times so I need to have it based on Nick or channel, hence the if nick$ = = statement.
If you still don't understand there is no need to post your negative comments. Just move on.
amd wrote:OK first off just cause you don't understand the question doesn't make it non-sensicle.
I am in multiple channels and have a BIND ms:NEW and then the proc ms:newdir . The channels announce in the same way but different pre times so I need to have it based on Nick or channel, hence the if nick$ = = statement.
If you still don't understand there is no need to post your negative comments. Just move on.
What he meant is, 'BIND -|- NEW ms:newdir', is not a correct bind. What are you binding to? Join? Kick? Pub? To get the proper answer, you must ask the proper question. If you look into binds (as arfer suggested), you will see how to accomplish channel masking within whichever bind your wanting.
But sadly this entire post smells of a warez script (pretimes,nuke,etc) that should be junked because it violates rule #1.
slennox wrote:No requesting help on anything involving "piracy" (of software, movies, or otherwise), because it's illegal in most places.