egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

!ignore cmd

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Wed Mar 28, 2007 12:35 am    Post subject: !ignore cmd Reply with quote

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
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Wed Mar 28, 2007 5:13 am    Post subject: Reply with quote

Lost your copy of tcl-commands.doc? Smile
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
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Wed Mar 28, 2007 6:50 am    Post subject: Reply with quote

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 Cool
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Wed Mar 28, 2007 7:07 am    Post subject: Reply with quote

Changed ignore to newignore still can't get it to work, does anyone have a ignore/ unignore script they can share?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Mar 28, 2007 8:47 am    Post subject: Reply with quote

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
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Wed Mar 28, 2007 9:23 am    Post subject: Reply with quote

Thanks nml now I understand it all
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber