| View previous topic :: View next topic |
| Author |
Message |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Wed Mar 28, 2007 12:35 am Post subject: !ignore cmd |
|
|
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: | ################
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. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Wed Mar 28, 2007 5:13 am Post subject: |
|
|
Lost your copy of tcl-commands.doc?
http://www.eggheads.org/cgi-bin/viewcvs.cgi/*checkout*/eggdrop1.7/doc/Attic/tcl-commands.doc?rev=1.3&search=None&hideattic=1&content-type=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 |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Wed Mar 28, 2007 6:50 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Wed Mar 28, 2007 7:07 am Post subject: |
|
|
| Changed ignore to newignore still can't get it to work, does anyone have a ignore/ unignore script they can share? |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Wed Mar 28, 2007 8:47 am Post subject: |
|
|
I believe what rosc' was referring to was the newignore tcl command, not any irc-command. In this case you'd replace the whole
| Code: | | putserv "IGNORE $ignorewho" |
with
| Code: | | 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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Wed Mar 28, 2007 9:23 am Post subject: |
|
|
| Thanks nml now I understand it all |
|
| Back to top |
|
 |
|