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.

about ignore..

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

about ignore..

Post by ultralord »

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..
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

Post by ultralord »

anyone ?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

Re: about ignore..

Post by honeybee »

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?
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

i am working on it just wait
|AmDeAtH @ Undernet
Death is only the *Beginning*...
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

Post by ultralord »

honeybee ahm i think with global time from shell [time]
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

Post by ultralord »

Anyone can help me with this.. is very important.. :/ thanks
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

Code: Select all

### 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.
Last edited by iamdeath on Wed Oct 10, 2007 1:54 pm, edited 6 times in total.
|AmDeAtH @ Undernet
Death is only the *Beginning*...
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

Post by ultralord »

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.
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

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
Last edited by iamdeath on Tue Oct 09, 2007 4:35 am, edited 1 time in total.
|AmDeAtH @ Undernet
Death is only the *Beginning*...
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

Post by ultralord »

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?
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

What network is that?
|AmDeAtH @ Undernet
Death is only the *Beginning*...
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

Post by ultralord »

Greekirc Network

/server storm.greekirc.net if you want to see and /msg Ultralord
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

Edited, check now the code.
|AmDeAtH @ Undernet
Death is only the *Beginning*...
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

Ok I have edited the code, restart you bot not just rehash, it should work fine.
|AmDeAtH @ Undernet
Death is only the *Beginning*...
Post Reply