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 

Requests: ignore user scripts

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
pavel_kbc
Voice


Joined: 28 Dec 2006
Posts: 23

PostPosted: Tue Jan 02, 2007 11:51 am    Post subject: Requests: ignore user scripts Reply with quote

hello. can anyone make scripts like this?

<x-r00t-x> perlbot, ignore lord 20000
<perlbot> lord (*!*@*.bois.qwest.net) is being ignored for 1 week, 6 days, 21 hours, 20 minutes
so the bot cant see users command and logs . etc

EDIT: i saw this on a perl bitch bot . Rolling Eyes
_________________
join my irc channel
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Jan 02, 2007 7:10 pm    Post subject: Reply with quote

Code:
bind pub n|n !ignore ignore:user

proc ignore:user {nick uhost hand chan arg} {
 if {[scan [join [lrange [split $arg] 0 1]] {%s %s} n t] != 2} {return 0}
 if {![isignore [set h [maskhost [getchanhost $n $chan]]]]} {
  newignore $h $hand "PUBLIC CMD" $t
  puthelp "privmsg $chan :$n ($h) is being ignored for [duration [expr {$t*60}]]."
 }
}

You need to be an owner (global or channel-specific +n flag) to be able to use the !ignore command.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts


Last edited by Sir_Fz on Tue Jan 02, 2007 8:29 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
pavel_kbc
Voice


Joined: 28 Dec 2006
Posts: 23

PostPosted: Tue Jan 02, 2007 7:58 pm    Post subject: Reply with quote

umm its seem its not working to me.

and please change public command to !ignore

thank you.
_________________
join my irc channel
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Jan 02, 2007 8:31 pm    Post subject: Reply with quote

Post updated.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
pavel_kbc
Voice


Joined: 28 Dec 2006
Posts: 23

PostPosted: Wed Jan 03, 2007 1:51 pm    Post subject: Reply with quote

Thank you Very Happy
_________________
join my irc channel
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 -> Script Requests 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