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 

about ignore..
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Thu Oct 04, 2007 3:47 pm    Post subject: about ignore.. Reply with quote

Hello how i can make script and when someone join in one specific channel if his nickname is at least 7 days register then will be ignored from bot and when the user with this nickname make part from channel will be unignore it..
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Sat Oct 06, 2007 3:42 am    Post subject: Reply with quote

anyone ?
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Oct 06, 2007 4:05 am    Post subject: Reply with quote

You make a post and then you wait. Read the "sticky".
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
honeybee
Halfop


Joined: 01 Jan 2006
Posts: 80

PostPosted: Sat Oct 06, 2007 12:15 pm    Post subject: Re: about ignore.. Reply with quote

ultralord wrote:
Hello how i can make script and when someone join in one specific channel if his nickname is at least 7 days register then will be ignored from bot and when the user with this nickname make part from channel will be unignore it..

registered where? and how can we check if its 7 days registered or whatever?
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Sat Oct 06, 2007 3:48 pm    Post subject: Reply with quote

i am working on it just wait
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Sun Oct 07, 2007 5:02 am    Post subject: Reply with quote

honeybee ahm i think with global time from shell [time]
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Mon Oct 08, 2007 3:20 am    Post subject: Reply with quote

Anyone can help me with this.. is very important.. :/ thanks
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Tue Oct 09, 2007 3:31 am    Post subject: Reply with quote

Code:
### Many thanks to " user, nml and rosc without them I could not make this script.
### Just remove your channel where it says #channel.
### Event
bind join - "#channel *!*@*" join-ignore
bind part - * part-ignore
bind notc - "*is not a valid nickname*" notice-ignore
bind notc - "*Time registered*" notice-ignore
bind notc - "*Info for*" notice-ignore

### Command
proc join-ignore {nick uhost handle chan} {
global someone banmask
  putquick "PRIVMSG nickserv :info $nick"
  set someone $nick
  set banmask "$nick*!*@[lindex [split $uhost "@"] 1]"
}

proc notice-ignore {nick uhost hand text dest} {
global banmask botnick someone
     if {[string match "*is not a valid nickname*" $text]} {return}
     if {[string match "*Time registered*" $text]} {
           regsub -all {EDT} $text "EST" text
           set then [split $text]
           set then [lrange $text 2 end]
           set then [clock scan "$then"]
           set now  [unixtime]
           set secondsInADay 86400
           set daysAgo [expr {($now-$then)/$secondsInADay}]
           putlog "$someone registered $daysAgo Days ago"
      set reason "Nickname registered $daysAgo days ago"
      if {$daysAgo < 8} {
      newignore $banmask $botnick $reason 0       
   }
     }
}

proc part-ignore {nick uhost hand chan msg} {
set remove "$nick*!*@[lindex [split $uhost "@"] 1]"
killignore $remove
}

putlog "Nickname ignore tcl."


Let me know if you have any troubles.

Edited: Fixed, it should work on your network now.
Edited: Once again, it should work now.
Edited: Added: regsub to get rid of EDT.
Edited: Ok, I have tested it on your server it should work.
Edited: I have edited so it will ignore nick!*@host.
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...


Last edited by iamdeath on Wed Oct 10, 2007 1:54 pm; edited 6 times in total
Back to top
View user's profile Send private message Visit poster's website
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Tue Oct 09, 2007 4:30 am    Post subject: Reply with quote

thnx a lot my friend.. but i check it now.. and the bot doesnt ignore the nick..


services on that server


NickServ services@greekirc.net


Last edited by ultralord on Tue Oct 09, 2007 4:32 am; edited 1 time in total
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Tue Oct 09, 2007 4:31 am    Post subject: Reply with quote

Itwill definately ignore those who are 7 or less than 7 days old type .ignores in DCC. I have checked this script and it was working on Dalnet and also tell me did you change the channel name? also tell me if you want to ignore those who are less than 7 days or you want to ignore who are older than 7 days? clear this to me first
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...


Last edited by iamdeath on Tue Oct 09, 2007 4:35 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Tue Oct 09, 2007 4:34 am    Post subject: Reply with quote

NickServ is services@greekirc.net * Nickname Server
NickServ is a Network Service
nickserv End of /WHOIS list.


for anope services.. can you help me ? :/ the script scan's my date from my shell?
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Tue Oct 09, 2007 4:35 am    Post subject: Reply with quote

What network is that?
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Tue Oct 09, 2007 4:36 am    Post subject: Reply with quote

Greekirc Network

/server storm.greekirc.net if you want to see and /msg Ultralord
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Tue Oct 09, 2007 4:41 am    Post subject: Reply with quote

Edited, check now the code.
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Tue Oct 09, 2007 10:29 am    Post subject: Reply with quote

Ok I have edited the code, restart you bot not just rehash, it should work fine.
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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