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.

!ignore cmd

Help for those learning Tcl or writing their own scripts.
Post Reply
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

!ignore cmd

Post by cache »

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.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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 8)
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Changed ignore to newignore still can't get it to work, does anyone have a ignore/ unignore script they can share?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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: Select all

putserv "IGNORE $ignorewho"
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
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Thanks nml now I understand it all
Post Reply