| View previous topic :: View next topic |
| Author |
Message |
ultralord Master

Joined: 06 Nov 2006 Posts: 255
|
Posted: Thu Oct 04, 2007 3:47 pm Post subject: about ignore.. |
|
|
| 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 |
|
 |
ultralord Master

Joined: 06 Nov 2006 Posts: 255
|
Posted: Sat Oct 06, 2007 3:42 am Post subject: |
|
|
| anyone ? |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Oct 06, 2007 4:05 am Post subject: |
|
|
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 |
|
 |
honeybee Halfop
Joined: 01 Jan 2006 Posts: 80
|
Posted: Sat Oct 06, 2007 12:15 pm Post subject: Re: about ignore.. |
|
|
| 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 |
|
 |
iamdeath Master

Joined: 11 Feb 2005 Posts: 323 Location: *HeLL*
|
Posted: Sat Oct 06, 2007 3:48 pm Post subject: |
|
|
i am working on it just wait _________________ |AmDeAtH @ Undernet
Death is only the *Beginning*... |
|
| Back to top |
|
 |
ultralord Master

Joined: 06 Nov 2006 Posts: 255
|
Posted: Sun Oct 07, 2007 5:02 am Post subject: |
|
|
| honeybee ahm i think with global time from shell [time] |
|
| Back to top |
|
 |
ultralord Master

Joined: 06 Nov 2006 Posts: 255
|
Posted: Mon Oct 08, 2007 3:20 am Post subject: |
|
|
| Anyone can help me with this.. is very important.. :/ thanks |
|
| Back to top |
|
 |
iamdeath Master

Joined: 11 Feb 2005 Posts: 323 Location: *HeLL*
|
Posted: Tue Oct 09, 2007 3:31 am Post subject: |
|
|
| 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 |
|
 |
ultralord Master

Joined: 06 Nov 2006 Posts: 255
|
Posted: Tue Oct 09, 2007 4:30 am Post subject: |
|
|
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 |
|
 |
iamdeath Master

Joined: 11 Feb 2005 Posts: 323 Location: *HeLL*
|
Posted: Tue Oct 09, 2007 4:31 am Post subject: |
|
|
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 |
|
 |
ultralord Master

Joined: 06 Nov 2006 Posts: 255
|
Posted: Tue Oct 09, 2007 4:34 am Post subject: |
|
|
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 |
|
 |
iamdeath Master

Joined: 11 Feb 2005 Posts: 323 Location: *HeLL*
|
Posted: Tue Oct 09, 2007 4:35 am Post subject: |
|
|
What network is that? _________________ |AmDeAtH @ Undernet
Death is only the *Beginning*... |
|
| Back to top |
|
 |
ultralord Master

Joined: 06 Nov 2006 Posts: 255
|
Posted: Tue Oct 09, 2007 4:36 am Post subject: |
|
|
Greekirc Network
/server storm.greekirc.net if you want to see and /msg Ultralord |
|
| Back to top |
|
 |
iamdeath Master

Joined: 11 Feb 2005 Posts: 323 Location: *HeLL*
|
Posted: Tue Oct 09, 2007 4:41 am Post subject: |
|
|
Edited, check now the code. _________________ |AmDeAtH @ Undernet
Death is only the *Beginning*... |
|
| Back to top |
|
 |
iamdeath Master

Joined: 11 Feb 2005 Posts: 323 Location: *HeLL*
|
Posted: Tue Oct 09, 2007 10:29 am Post subject: |
|
|
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 |
|
 |
|