Staff check Lucidchat

By Vegito on Oct 12, 2013

Type:
!owners [chan] to see the owner.
!co-owners [chan] to see the co-owners.
!admins [chan] to see the admins.
!ops [chan] to see the operators.
!hops [chan] to see the half operators.
!voices [chan] to see the voices.

[chan] can be left empty.

Tested in irc.lucidchat.net.

on *:input:#: {
  if ($regex($1,/^!(owner|co-owners|admins|ops|hops|voices)$/Si)) {
    var -g %cmd = $regml(1), %msg = msg #, %check = 1, %chan = $iif($2, $2, #)
    cs alist %chan
  }
}

on $*:text:/^!(owner|co-owners|admins|ops|hops|voices)/Si:#:{
  var -g %cmd = $regml(1), %msg = msg #, %check = $true, %chan = $iif($2, $2, #)
  cs alist %chan
}

on *:notice:*:*:{
  if ($nick = ChanServ) { 
    if ($5- = not registered.) { %msg 12 $+ %chan is not registered | return }
    elseif ($2- = Permission denied.) { %msg 12 $+ I don't have access to %chan alist. | return }
    if (%check) {
      %msg 12 $+ $iif(%cmd = owner,This Is,These Are) The %cmd of %chan !! 
      set %check 0
    }
    if ($istok(owner founder:co-owners co-founder:admins sop:ops aop:hops hop:voices vop, %cmd $5, 58)) { %msg 12 $+ $2 }
  }
}  

Comments

Sign in to comment.
TheWhistler   -  Jan 23, 2014

I have to agree with Jinn its not working
and yes there is chatters in the channel
[» Thu Jan 23 | 11:18:56 am «] !owner
[» Thu Jan 23 | 11:18:56 am «] <~UtahBlaine> This Is The owner of #GalaxyEvolutions !!
[» Thu Jan 23 | 11:19:34 am «] !co-owners
[» Thu Jan 23 | 11:19:34 am «] <~UtahBlaine> These Are The co-owners of #GalaxyEvolutions !!
[» Thu Jan 23 | 11:19:56 am «] !ops
[» Thu Jan 23 | 11:19:56 am «] <~UtahBlaine> These Are The ops of #GalaxyEvolutions !!

Vegito  -  Jan 26, 2014

What network are you on?
It does not work on all networks.

rebel9  -  Apr 17, 2014

change "check && $5- and $2-" to $1- on both parts of the On *:NOTICE: segment. also change 'cs alist' with how your services work. ChanServ with anope is usually cs access list.

Sign in to comment

Jinn   -  Oct 29, 2013

No longer works.

[13:41] <~me> !voices #thechan
[13:41] <~bot> 12These Are The voices of #thcchan !!

Vegito  -  Oct 30, 2013

It's working for me.
Are you sure you have people in your chan as voice?

On what network are you on?

DjSxX  -  Feb 05, 2014

networks that uses xOP the script doesnt work on mine it works pretty fine :) thanks @Vegito

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.