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.

!addX (chanserv mimic?)

Old posts that have not been replied to for several years.
Locked
d
dossi
Voice
Posts: 30
Joined: Mon Dec 20, 2004 9:21 pm

!addX (chanserv mimic?)

Post by dossi »

I'm looking for a script where users can !addop or !addpeon (voice) and it will op or voice the users that were added in the channel. I know there have been posts like this before, but people respond with scripts that just allow !op which is not permanent. Does anyone have a script that will !addop/peon and save it, and each time the user joins the channel they get autooped? Also, something where you can delete those users

Thanks-
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what you are looking for doesn't require a script - setting that channel +autoop is enough (or giving +a flag to people who need to be autooped); respectively +autovoice and +v
User avatar
toefraz
Halfop
Posts: 44
Joined: Thu Jul 01, 2004 4:35 am

Post by toefraz »

Acutually, demond, I believe he is looking for a script that will add the user to the userfile, then set the user's flag+ao when !addop is said in a channel. And then a part where !delop takes away to +ao option.
When the going gets tough...Make lemonade!!!
d
dossi
Voice
Posts: 30
Joined: Mon Dec 20, 2004 9:21 pm

Post by dossi »

Yes toefraz, thanks for clearing that up - Exactly what I'm loooking for
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Very simple, use this format in TCL:

To add:
.adduser <nick> <nick!ident@host.domain.com>
.chattr <nick> +av
To remove:
.deluser <nick>
Legend:

Code: Select all

+ = add
- = remove
a = autoop
v = autovoice
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

oh okay... the request is lame, but anyway:

Code: Select all

bind pub m !addop foo
bind pub m !addpeon foo
bind pub m !delop foo
bind pub m !delpeon foo
proc foo {n u h c t} {
  set n [lindex [split $t] 0]
  if {[string range $::lastbind 4 5] == "op"} {set f a} {set f g}
  if {[set u [getchanhost $n $c]] == ""} return
  set h [finduser $n!$u]
  switch $::lastbind {
    "!addop" - "!addpeon" {
      if {$h == "*"} {adduser $n [maskhost $n!$u]; set h $n}
      chattr $h +$f
    }
    "!delop" - "!delpeon" {
      if {$h == "*"} return
      chattr $h -$f
    }
  }
}
d
dossi
Voice
Posts: 30
Joined: Mon Dec 20, 2004 9:21 pm

Post by dossi »

Hate to be a bother, but-- doesn't work.

I'm doing !addop NICK (which is what i wanted it to do)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

hate to hear somebody say my script doesn't work, then test it myself only to discover it works

NICK must be on channel, has that occured to you?
d
dossi
Voice
Posts: 30
Joined: Mon Dec 20, 2004 9:21 pm

Post by dossi »

nick ison channel.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

it works perfectly on my bot

so, how doesn't it work for you? doesn't add NICK as botuser? doesn't change its flags?
Locked