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.

copy.tcl

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
P
PrE
Voice
Posts: 10
Joined: Sat Jan 14, 2012 8:19 pm

copy.tcl

Post by PrE »

anyone willing to code me script, its very simple.

Lets say i say

!copy Nick11

it will start copying what he said and re-send it to Nick11 through NOTICE

so everything he says in that chan is relayed to him through notice.
J
Johannes13
Halfop
Posts: 46
Joined: Sun Oct 10, 2010 11:38 am

Post by Johannes13 »

Code: Select all

namespace eval ::copycat {
	variable copytarget {}
	bind pub - !copy [namespace current]::copytarget
	bind pubm - * [namespace current]::copycat

	proc copytarget {n u h c a} {
		variable copytarget $a
	}

	proc copycat {n u h c a} {
		variable copytarget
		if {$n eq $copytarget} {
			putnotc $n $a
		}
	}
}
P
PrE
Voice
Posts: 10
Joined: Sat Jan 14, 2012 8:19 pm

Post by PrE »

thanks it works only on me, like if do it on my name, so like its only limited to my name can you make it so it works with any name? other then that its perfect.
J
Johannes13
Halfop
Posts: 46
Joined: Sun Oct 10, 2010 11:38 am

Post by Johannes13 »

You don't see the the copy, because the bot send it out through a NOTICE (as requested) to that user directly.
P
PrE
Voice
Posts: 10
Joined: Sat Jan 14, 2012 8:19 pm

Post by PrE »

oh yes it works, it was just because my nick-tab complete was adding a space at the end of the name, but is it possible to add stop copying?
J
Johannes13
Halfop
Posts: 46
Joined: Sun Oct 10, 2010 11:38 am

Post by Johannes13 »

Just do !copy and it will stop :P
Post Reply