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.

helloo can i find help with this tcl, :P

Old posts that have not been replied to for several years.
User avatar
avilon
Halfop
Posts: 64
Joined: Tue Jul 13, 2004 6:58 am
Location: Germany

Post by avilon »

Code: Select all

bind join -|- * whatever
proc whatever {nick host hand chan} {
	global modemr
	if {[matchban $nick!$host $chan] && ![info exists modemr($chan)]} {
		putquick "MODE $chan +MR"
		set modemr($chan) "1"
		utimer 10 [list puthelp "MODE $chan -MR"]
		utimer 11 [list unset modemr($chan)]
   }
}
$::modemr != $modemr if you don't define it globally
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

Post by Bader »

avilon wrote:

Code: Select all

bind join -|- * whatever
proc whatever {nick host hand chan} {
	global modemr
	if {[matchban $nick!$host $chan] && ![info exists modemr($chan)]} {
		putquick "MODE $chan +MR"
		set modemr($chan) "1"
		utimer 10 [list puthelp "MODE $chan -MR"]
		utimer 11 [list unset modemr($chan)]
   }
}
$::modemr != $modemr if you don't define it globally
[10:58] Tcl error [whatever]: can't set "modemr(#kw)": variable isn't array :(
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

That's because modemr is already set as a variable, you either need to change it's name or just restart.
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

Post by Bader »

Sir_Fz wrote:That's because modemr is already set as a variable, you either need to change it's name or just restart.
thanks guys its working know, and good work :D
Locked