| View previous topic :: View next topic |
| Author |
Message |
aap Voice
Joined: 18 Jun 2006 Posts: 13
|
Posted: Mon Jun 19, 2006 1:26 pm Post subject: |
|
|
Wauw!
That is exactly what I needed!
Really thanks a lot!
aap
PS. if you need something from me  |
|
| Back to top |
|
 |
SaPrOuZy Halfop

Joined: 24 Mar 2004 Posts: 75 Location: Lebanon
|
Posted: Tue Jun 20, 2006 3:10 am Post subject: |
|
|
i think you should declare check as global
try it.
| Code: | bind time - * man ;# runs every minute
proc man {m h d mo y} {
global check
set a [info exists check]
set fs [open file.txt r]
gets $fs line(first)
close $fs
if { $a == 1 } {
if { $check != $line(first) } {
putserv "PRIVMSG #channel1 :$line(first)"
unset check
set check "$line(first)"
}
} elseif { $a == 0 } {
set burpie "a is 0"
putserv "PRIVMSG #channel1 :$burpie"
set check "$line(first)"
} else {
set burp "damnit, a is not 0 or 1"
putserv "PRIVMSG #channel1 :$burp"
}
} |
EDIT: woops, i didn't see the second page of the post.  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|