Search found 15 matches

by nANDu
Mon Jul 09, 2007 12:52 am
Forum: Modules & Programming
Topic: Reset database file in Stats.mod
Replies: 1
Views: 7528

Reset database file in Stats.mod

How do i reset the database in stats.mod? I tried deleting the database file, but when i restart the bot it somehow backups the db' file.
by nANDu
Tue Jan 17, 2006 5:47 pm
Forum: Scripting Help
Topic: utimer problem?
Replies: 11
Views: 11301

Pls read what demond posted again proc check:ops {nick host hand text} { if {([isop $nick $chan])} { ...... ...... } } .... .... putquick "NOTICE $nick :You invited me to join \002$chan\002. Joining..." putquick "PRIVMSG #bots :Joining \002$chan\002 - Invited in by \002$nick\002"...
by nANDu
Mon Jan 16, 2006 2:13 pm
Forum: Scripting Help
Topic: utimer problem?
Replies: 11
Views: 11301

Code: Select all

utimer 10 [list putquick "PRIVMSG OperServ :mode $chan +o $botnick"]
by nANDu
Sun Jan 08, 2006 7:31 am
Forum: Scripting Help
Topic: socket, client compatiblity problem
Replies: 7
Views: 7746

hi demond, lil help pls [08/01 17:00:03] <Doub> [03:10] Tcl error [cricinfo]: wrong # args: should be "cricinfo" [08/01 17:01:34] <Doub> [03:30] #nANDu# set errorInfo [08/01 17:01:34] <Doub> Currently: wrong # args: should be "cricinfo" [08/01 17:01:34] <Doub> Currently: while ex...
by nANDu
Thu Jan 05, 2006 9:02 am
Forum: Scripting Help
Topic: socket, client compatiblity problem
Replies: 7
Views: 7746

Hi Demond, Thanks for the suggestion, I tried the same with [fconfigure] & [fileevent] .. i still get the same error. Nevermind i know i din understand/use them properly :/ Your spambuster was a great help, i succeeded the same with [control] & [connect]. But, i need a lil help checking a pr...
by nANDu
Tue Jan 03, 2006 5:21 am
Forum: Scripting Help
Topic: How to exclude +f users from been kicked
Replies: 2
Views: 5496

find this [matchattr $hand o|o $chan] and replace it with [matchattr $hand of|of $chan]
by nANDu
Fri Dec 30, 2005 5:40 pm
Forum: Scripting Help
Topic: socket, client compatiblity problem
Replies: 7
Views: 7746

socket, client compatiblity problem

CricInfo.LO.UK.StarLink.Org is a CricInfo's IRC server. Idea is to get the commentry frm #cricinfo channel and relay it to bots original network/channel. proc cricket {} { set nick "nANDu[rand 99]" set sock [socket cricinfo.lo.uk.starlink.org 6667] puts $sock "NICK $nick" puts $s...
by nANDu
Mon Dec 26, 2005 4:33 pm
Forum: Scripting Help
Topic: Flood proc, Consecutive trigger
Replies: 1
Views: 4920

Flood proc, Consecutive trigger

hi demond, u asked me to post it here. Here is a sample flood proc which triggers for only consecutive joins of unresolved idents. I'm interested to make this an universal consecutive detection type proc. So that the same proc is used for different types of consecutive join patterns. Guide me to mak...
by nANDu
Mon Dec 26, 2005 1:06 pm
Forum: Scripting Help
Topic: drone script not kicking drones
Replies: 19
Views: 25651

check the proc checkdrone edited, it should work for all the nick examples u've posted above and the same.
by nANDu
Fri Dec 23, 2005 12:29 am
Forum: Scripting Help
Topic: problem with setuser
Replies: 4
Views: 8199

Laughs @ me, Sir fz, i fixed it long back and never bothered to change it here. Ty anyways ;)
by nANDu
Thu Dec 22, 2005 8:24 am
Forum: Scripting Help
Topic: drone script not kicking drones
Replies: 19
Views: 25651

proc checkdrone {n u h c} { global droneip if {(![botisop $c]) || ([matchattr $h of|of])} {return} scan $u %\[^@\]@%s u host set u [string trimleft $u ~] if {([info exists droneip($n)]) || ([string length $n] < 5) || ([string length $n] > 11) || ([string length $u] < 4)} {return} if {([string is al...
by nANDu
Thu Dec 22, 2005 8:08 am
Forum: Scripting Help
Topic: problem with setuser
Replies: 4
Views: 8199

bind pubm -|- * pubm:counter proc pubm:counter {nick uhost hand chan args} { if {![validuser $nick]} { setuser $nick XTRA sc$chan putlog "set user $nick - [getuser $nick XTRA sc$chan]" } if {([isop $nick $chan]) || ([isvoice $nick $chan])} { putlog "pubm counter hand is $hand for XTR...
by nANDu
Thu Dec 22, 2005 12:16 am
Forum: Scripting Help
Topic: problem with setuser
Replies: 4
Views: 8199

problem with setuser

I get Tcl error [pubm:counter]: No such user. even though i've setuser. Can't understand, tell me wht the problem is? bind pubm -|- * pubm:counter proc pubm:counter {nick uhost hand chan args} { if {[matchattr $hand b]} { chattr $hand -|-T $chan return 1 } if {([isop $nick $chan]) || ([isvoice $nick...
by nANDu
Wed Jul 06, 2005 7:30 am
Forum: Archive
Topic: problem with arrays
Replies: 4
Views: 2128

Should i make this array ex global in both test and example proc's ? I think it works

Code: Select all

proc test {nick uhost handle channel} {
  global ex
  set ex($nick) 1
  return 0
} 
by nANDu
Wed Jul 06, 2005 7:22 am
Forum: Archive
Topic: problem with arrays
Replies: 4
Views: 2128

problem with arrays

If i set an array ex($nick) in a proc test . How do i get $ex($nick) in a different proc? bind join -|- * text bind pubm -|- * example proc test {nick uhost handle channel} { set ex($nick) 1 return 0 } proc example {nick uhost handle channel text} { global ex putlog "ex($nick) is $ex($nick)&quo...