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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
PrE
Voice
Posts: 10 Joined: Sat Jan 14, 2012 8:19 pm
Post
by PrE » Sat Feb 18, 2012 7:36 pm
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.
Johannes13
Halfop
Posts: 46 Joined: Sun Oct 10, 2010 11:38 am
Post
by Johannes13 » Sun Feb 19, 2012 8:16 pm
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
}
}
}
PrE
Voice
Posts: 10 Joined: Sat Jan 14, 2012 8:19 pm
Post
by PrE » Mon Feb 20, 2012 3:08 pm
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.
Johannes13
Halfop
Posts: 46 Joined: Sun Oct 10, 2010 11:38 am
Post
by Johannes13 » Mon Feb 20, 2012 5:06 pm
You don't see the the copy, because the bot send it out through a NOTICE (as requested) to that user directly.
PrE
Voice
Posts: 10 Joined: Sat Jan 14, 2012 8:19 pm
Post
by PrE » Mon Feb 20, 2012 5:20 pm
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?
Johannes13
Halfop
Posts: 46 Joined: Sun Oct 10, 2010 11:38 am
Post
by Johannes13 » Mon Feb 20, 2012 6:30 pm
Just do !copy and it will stop