text admin

By RaiNBoW_Six on Jun 16, 2009

this code only text admin input in remote :)

on *:text:*:#:{ if ($nick == your_nick) {
    if ($1 == A) { /mode # +A }
    if ($1 == O) { /mode # +O }
    if ($1 == ~) { /msg operserv mode # +q $2- }
    if ($1 == &) { /msg operserv mode # +a $2- }
    if ($1 == @) { /msg operserv mode # +O $2- }
    if ($1 == %) { /msg operserv mode # +h $2- }
    if ($1 == +) { /msg operserv mode # +v $2- }
    if ($1 == B) { /msg operserv mode # +b $2- }
    if ($1 == kb) { /msg chanserv kick # $2- }
  }

Comments

Sign in to comment.
Jonesy44   -  Jun 17, 2009
on $*:text:/^([+-])([A-Za-z])/S:#:mode # $+($regml(1),$str($regml(2),$calc($0 -1))) $strip($2-)
 Respond  
Jethro   -  Jun 16, 2009

This sort of script has been done tirelessly for countless times:

on @*:TEXT:*:#: { 
  if ($address = YourUser@host) {
    if ($1 = A) { mode # $+(+,$v2) }
    if ($1 = O) { mode # $+(+,$v2) }
    if ($1 = ~) { msg operserv mode # +q $2 }
    if ($1 = &) { msg operserv mode # +a $2 }
    if ($1 = @) { msg operserv mode # +o $2 }
    if ($1 = %) { msg operserv mode # +h $2 }
    if ($1 = +) { msg operserv mode # $+($v2,v,$chr(32),$2) }
    if ($1 = b) { msg operserv mode # $+(+,$v2) $2 }
    if ($1 = k) { msg chanserv kick # $2 }
  }
}
 Respond  
sk68   -  Jun 16, 2009

wouldnt a better idea be to change if ($nick == your_nick) to if ($address($nick,2) == your_host/vhost) the 2 can be changed its just my preferred format.

 Respond  
Jonesy44   -  Jun 16, 2009

You're missing an ending bracket, and this is not very safe - anyone could change their nick to the admin's. You don't necessairly need the "/"'s, but that's personal preference - same for the () and {} - but you need to keep one of them. The @ cmd is incorrect - should be +o not +O

 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.