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.

Action repeat errors occured...

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
S
Sydneybabe
Op
Posts: 106
Joined: Fri Apr 27, 2007 3:31 am
Location: Philippines

Action repeat errors occured...

Post by Sydneybabe »

Hi, need help with this it gives me an error on partyline:
[23:39:42] Tcl error [ctcp_repeat]: invalid command name "ctcp_repeat"

Code: Select all

set repeat_msg {
	"Kick message 1"
	"Kick message 2"
}
set repeat_time 0
set repeat_chans "#"

bind pubm - * pubm_repeat
bind ctcp - ACTION ctcp_repeat

proc pubm_repeat {nick uhost hand chan arg} {
	global repeat_msg repeat_time repeat_chans repeat_data botnick
	if {(([lsearch -exact [string tolower $repeat_chans] [string tolower $chan]] != -1) && ($repeat_chans == "*")) && (![isop $nick $chan]) && (![isvoice $nick $chan]) && ($nick != $botnick)} {
		if {([info exists repeat_data($nick-$chan)]) && ($repeat_data($nick-$chan) == $arg)} {
			set banmask "*!*@[lindex [split $uhost @] 1]"
			set kickmsg [lindex $repeat_msg [rand [llength $repeat_msg]]]
			newchanban $chan $banmask $nick $kickmsg
			unset repeat_data($nick-$chan)
		} else {
			set repeat_data($nick-$chan) $arg
			utimer $repeat_time "catch {unset repeat_data([xsplit $nick-$chan])} 180"
		}
	}
}

proc ctcp_repeat {nick uhost hand chan keyword arg} {
	pubm_repeat $nick $uhost $hand $chan $arg
}
proc xsplit {arg} {
	regsub -all "\\\[" $arg "\\\[" arg
	regsub -all "\\\]" $arg "\\\]" arg
	return $arg
}
Thanks in advance.
Post Reply