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.
Help for those learning Tcl or writing their own scripts.
cache
Master
Posts: 306 Joined: Tue Jan 10, 2006 4:59 am
Location: Mass
Post
by cache » Wed Mar 28, 2007 12:35 am
Tried to make a ignore cmd to !ignore nick so I can make bot ignore people but I guess eggdrop don't use /ignore since I couldn't get it to work... What I tried is...
Code: Select all
################
proc pub_ignoreuser {nick uhost hand channel arg} {
global botnick
if {$arg == ""} {
putserv "PRIVMSG $nick :Usage: !ignore <nickname>"
return 0
}
set ignorewho [lrange $arg 0 end]
putserv "IGNORE $ignorewho"
return 0
}
bind pub - !ignore pub_ignoreuser
#################
no errors when tried.
rosc2112
Revered One
Posts: 1454 Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania
Post
by rosc2112 » Wed Mar 28, 2007 5:13 am
Lost your copy of tcl-commands.doc?
http://www.eggheads.org/cgi-bin/viewcvs ... text/plain
newignore <hostmask> <creator> <comment> [lifetime]
Description: adds an entry to the ignore list; creator is given credit
for the ignore. lifetime is how many minutes until the ignore expires
and is removed. If lifetime is not specified, ignore-time (usually 60)
is used. Setting the lifetime to 0 makes it a permanent ignore.
Returns: nothing
Module: core
cache
Master
Posts: 306 Joined: Tue Jan 10, 2006 4:59 am
Location: Mass
Post
by cache » Wed Mar 28, 2007 6:50 am
lol No, I was trying to study the newignore on bass seen script to see how it works but wasn't able to understand yet..
I will try a few more ways
cache
Master
Posts: 306 Joined: Tue Jan 10, 2006 4:59 am
Location: Mass
Post
by cache » Wed Mar 28, 2007 7:07 am
Changed ignore to newignore still can't get it to work, does anyone have a ignore/ unignore script they can share?
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Wed Mar 28, 2007 8:47 am
I believe what rosc' was referring to was the newignore tcl command, not any irc-command. In this case you'd replace the whole
with
Code: Select all
newignore $ignorewho $hand "Some reason"
Be aware that not all servers support server-side ignores.
Also, you cannot use lrange in that way. To be honest, I don't see the purpose of using it like that at all.
NML_375
cache
Master
Posts: 306 Joined: Tue Jan 10, 2006 4:59 am
Location: Mass
Post
by cache » Wed Mar 28, 2007 9:23 am
Thanks nml now I understand it all