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.

What script would do this?

Old posts that have not been replied to for several years.
Locked
a
adam15906
Voice
Posts: 10
Joined: Fri Sep 19, 2003 1:35 pm

What script would do this?

Post by adam15906 »

Ok I have a channel where some people get nicks like G|1463345 if they do not identify and we already have a bot to kick and ban on them nick changes but my question is how can I set my bot to go around like every 30 minutes and unban just nick bans like G|*!*@* and no other bans. I know +dynamicbans but that doesn't really get the result that I want. Thank you so much if you can help me.

P.S. How do you turn off things like

[20:01] #blah: mode change '+b G|5998867!*@*' by blah!blah@blah.blah.blah.blah?
a
adam15906
Voice
Posts: 10
Joined: Fri Sep 19, 2003 1:35 pm

My attempt at a script

Post by adam15906 »

This is my rather interesting attempt at a script but it appearntly still lets my Drop run LoL

bind time - "00 * * * *" time:guestunbans
bind time - "30 * * * *" time:guestunbans

proc time:guestunbans {min hour day month year} {
foreach item [banlist #betas] {
match $bannick G|
killchanban item
}
}
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

I think you mean a script like this

it bans user if the ident matches ~ cause an nick that is not identifyed to nickserv contains a ~ in ident.

note: i have not tested this script so if it doesn't work plz let me know ;)

Code: Select all

bind join - * join:pub

proc join:pub {nick uhost hand chan} {
  if {[string match -nocase "\x7E*" "[lindex [split $uhost @] 0]]"]} {
    if {![validuser $nick]} {
      adduser $nick
      chattr $nick +B
      set bantime [timer 20 [list kickban $nick $uhost $chan]]
    }
    if {[validuser $nick]} {
      chattr $nick +A
      timer 30 [list kickban $nick $uhost $chan]
    }
  } 
}

proc kickban {nick uhost chan} {
  if {![string match -nocase "\x7E*" "[lindex [split $uhost @] 0]]"]} {
    pushmode +b *!*@[lindex [split $uhost @] 1]]
    putkick $chan $nick "Ident your self"
    timer 30 [list unbanuser $nick $uhost $chan]
  } 
}

proc unbanuser {nick uhost chan} {
  if {[matchattr $nick +A]} {
    pushmode -b *!*@[lindex [split $uhost @] 1]
    chattr $nick -A
  }
  if {[matchattr $nick +B]} {
    pushmode -b *!*@[lindex [split $uhost @] 1]
    chattr $nick -B
    deluser $nick
  }
}
XplaiN but think of me as stupid
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Ofloo wrote:[snip]
it bans user if the ident matches ~ cause an nick that is not identifyed to nickserv contains a ~ in ident.
[snip]
that's not true, if ~ is in ident it means the user doesn't have identd.
User avatar
BarkerJr
Op
Posts: 104
Joined: Sun Mar 30, 2003 1:25 am
Contact:

Re: What script would do this?

Post by BarkerJr »

adam15906 wrote:P.S. How do you turn off things like

[20:01] #blah: mode change '+b G|5998867!*@*' by blah!blah@blah.blah.blah.blah?
See .help console
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

Sir_Fz wrote:that's not true, if ~ is in ident it means the user doesn't have identd
Thats what i sad !!!! ;p

nick that is not identifyed to nickserv contains a ~ in ident.
XplaiN but think of me as stupid
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Ofloo wrote:
Sir_Fz wrote:that's not true, if ~ is in ident it means the user doesn't have identd
Thats what i sad !!!! ;p

nick that is not identifyed to nickserv contains a ~ in ident.
No, you didn't get me. If the user doesn't have identd installed on his system, then he won't get an ident response from the server, this ~ will be in his ident.. he can identify to nickserv and act as a normal registered/identified user with ~ in his ident.
Locked