Very simple chan admin/oper script

By BalkY on Mar 04, 2007

Use: !addoper and its write an .txt file with that name you type.
When this name join its show msg Oper Joined! and its give him +ao
hf ^^

on *:TEXT:*:#: {
 if ($1 == !addoper) {
  if ($nick !isop $chan) || ($2 == $null) { halt }
    write oper.txt $2
     notice $nick Successfully added $2 to the list.
    }
  }
on *:JOIN:#: {
   if ($nick == $read(oper.txt, w, * $+ $nick $+ *)) { msg $chan Oper joined! | mode $chan +o $nick | halt }
  }
}

Comments

Sign in to comment.
Gh0stm4ch1n3   -  Apr 22, 2010

Dosent work for me ;/

 Respond  
Nikol4u   -  Mar 05, 2007

<3

 Respond  
BalkY   -  Mar 05, 2007

Hey is it have some diffrence Aaron :) and is it good? :D

 Respond  
Aaron   -  Mar 05, 2007

if your only using 1 text, why not just use:

on :text:!addoper:#:{

 Respond  
Lindrian   -  Mar 04, 2007

No need for the varibale acually.
on :TEXT::#: {
if ($1 == !addoper) {
if ($nick !isop $chan) || ($2 == $null) { halt }
write oper.txt $2
notice $nick Successfully added $2 to the list.
}
}
on :JOIN:#: {
if ($nick isin $read(oper.txt, w,
$+ %1oper.join $+ *)) { msg $chan Oper joined! | mode $chan +o $nick | halt }
}
}

 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.