Choose room admins

By cantthink96 on Oct 03, 2009

This chooses the room admins instead of having if ($nick isop #) or if ($nick == example) just put if (%admins. [ $+ [ $nick ] ]) and its more accurate

on 1:TEXT:!choose*:#:{ if ($nick isop #) {
    set %admins. [ $+ [ $2 ] ] } {
  msg $chan $2 is now a # -admin }
}

Comments

Sign in to comment.
Cracker200   -  Oct 04, 2009

True but the way he's done it it's Spaced out i personaly like Spaced out stuff lol :)

 Respond  
Jethro   -  Oct 04, 2009

You can do this in one line:

on $1:TEXT:$(/^([!]choose)\s( $+ $2 $+ )/iS):#:if ($nick isop #) set $+(%,admins.,$2) | msg $chan $2 is now a # -admin
 Respond  
Cracker200   -  Oct 04, 2009

I like this it's Simple :P

 Respond  
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.