Login Script

By SWNight on Oct 31, 2007

You will have to login by Private Messaging the bot: !login (Pass)
Then it will give you +h/+o/+a/+q depending on what is set in the ini. Also you will need a variable called '%chan' add the channel name in there.
You will need to create a mods.ini. With the settings:
[HalfOps]
Nick=Pass
[Ops]
Nick=Pass
[Admins]
Nick=Pass
[Owners]
Nick=Pass
e.g.
[HalfOps]
Nick1=Password
[Ops]
Nick2=Pass
[Admins]
Nick3=Passw
[Owners]
Nick4=noob1

on *:TEXT:!login*:?: {
  if ($2) {
    if ($2 == $readini(mods.ini,n,halfops,$nick) { mode %chan +h $nick | notice $nick You are now logged in. }
    if ($2 == $readini(mods.ini,n,ops,$nick) { mode %chan +o $nick | notice $nick You are now logged in. }
    if ($2 == $readini(mods.ini,n,admins,$nick) { mode $chan +a $nick | notice $nick You are now logged in. }
    if ($2 == $readini(mods.ini,n,owners,$nick) { mode $chan +q $nick | notice $nick You are now logged in. }
  }
  else msg $nick [ERROR] No password given.
}

Comments

Sign in to comment.
SWNight   -  Nov 03, 2007

Yeah, i was just getting it to work, then start simplifying it ;)

 Respond  
guest598594   -  Nov 02, 2007

it could be simplified a lot

on *:TEXT:!login*:?: {
  if ($2) {
    if ($2 == $readini(mods.ini,n,halfops,$nick) { mode %chan +h $nick | notice $nick You are now logged in. }
    if ($2 == $readini(mods.ini,n,ops,$nick) { mode %chan +o $nick | notice $nick You are now logged in. }
    if ($2 == $readini(mods.ini,n,admins,$nick) { mode $chan +a $nick | notice $nick You are now logged in. }
    if ($2 == $readini(mods.ini,n,owners,$nick) { mode $chan +q $nick | notice $nick You are now logged in. }
  }
  else msg $nick [ERROR] No password give.
}
 Respond  
Noutrious   -  Nov 01, 2007

Well, it\'s okay

 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.