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.

Public Commands

Old posts that have not been replied to for several years.
Locked
n
n0mad

Public Commands

Post by n0mad »

Maybe it's already written, but I didn't find it.
I'm looking for a scripts that can op, deop, voice or devoice ppl with !op, !deop, !voice and !devoice command but only for the caller itself.
For example:

AAAA it's +fhvo in bot's userlist
BBBB it's +fhv in bot's userlist

AAAA can write '!op' to op itself but can't do '!op BBBB';
BBBB can write '!voice' to voice itself but can't do !op , !deop or !devoice [nick]

It will already exist?

Tnx in advance for ur support, n0mad.
User avatar
CrazyCat
Revered One
Posts: 1359
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

something like:

Code: Select all

bind pub - "!op" me:op

proc me:op {nick uhost handle chan args} {
   if {$args != ""} {
      puthelp "PRIVMSG $nick :You can't op anyone else than you"
      return 0
   }
   if {[matchattr $handle o $chan]} {
      pushmode $chan +o $nick
      return 0
   }
}
And use the same for all commands you need
Locked