Identify as Room owner/mod (Chatspace)

By Infinity on May 05, 2011

Here's a little script that I created for my own personal use, it's nice and quick, and easy to use.

Here's what it does...

On input where the input text is "!ident" without quotations, if you are an op on the channel it will simply deop you. However if you are not an op, typing in !ident will define you as a room owner, or mod (aop).

Works for chatspace because it makes use of the /services identify # Pass command.

You'll need to change the value of "PASSWORD" to your room owner/mod password though, and !ident will then be useful for quick deop and opping on your own nickname.

on *:INPUT:#:{
  if ($me isop $chan) && (($1 == !ident)) {
    /mode # -o $me
  }
  elseif (($1 == !ident)) {
    /services identify # PASSWORD  }
}

Comments

Sign in to comment.
Jethro   -  May 11, 2011

You have a point. I must have daydreamed.

 Respond  
blackvenomm666   -  May 11, 2011

and jethro you wouldnt want the @ command here anyways. the first one is to mod yourself so the @ command would make it not work because your not mod on the channel even though what your trying to do is mod yourself haha

 Respond  
ShaferBatman   -  May 11, 2011

Sorry, didn't know about the '@' I see what you're saying now. Either way though it'd still be pointless >> You should know when you're +o, to -o

 Respond  
ShaferBatman   -  May 11, 2011

You don't have to be. op'd. When you type +op It identify s to chatspace, making you moderator. and if you're already moderator -o removes it. fyi

 Respond  
Jethro   -  May 10, 2011

ShaferBatman, > on @*:INPUT:#:{ make sure you're opped.

 Respond  
ShaferBatman   -  May 10, 2011

on *:INPUT:#:{ if ($1 == +op) { services identify #Roomname Password } | if ($1 == -o) { mode $chan -o $me }

+op = identify
-o = -o

 Respond  
Infinity   -  May 05, 2011

See I change my passwords from time to time so that people don't have all that much time to figure it out. Mostly random alpha-characters though.

 Respond  
Jethro   -  May 05, 2011

Why did you put a $1 in replacement for the actual Password though? The $1 is the identifier for the pass. If your pass stays the same, you can have it hard-coded as intended. The $1 should have been $$1 (with double dollar signs) so that it must be filled before the script will trigger. If you choose to have it with single dollar sign, you must make an if condition as in: if ($1) { or else the script will trigger if $1's value is not filled.

 Respond  
Infinity   -  May 05, 2011

I keep most of my code clean in that area so when I add them I don't seem to have a problem. saves time for me having to keep track of the remote scripts I have loaded in case a specific alias isn't there. For big aliases though, then i'll keep them added as a separate remote script though.

I create my own little seperators by starting a line off with a comment semicolon.

something like
;--------------------------------------------------
works for me to separate my aliases into categories if needed, but I only have one of those separators now.. seems a bit unorthodox but it does help me visualize a separation between my needed aliases and my custom ones lol

 Respond  
blackvenomm666   -  May 05, 2011

yea that works too i put all my aliases in my remotes tab though. my aliases tab seems to dislike me most of the time and doesnt wanna work

 Respond  
Infinity   -  May 05, 2011

that would work I guess, but it doesn't show the "!ident" value in the channel. I kind of like it showing, then when someone else tries it to thinking that it's an actual command nothing happens for them haha.

Also, i would just put it in the aliases as

/ident {
    if ($me isop #) {
      mode # -o $me
      return
    }
    services identify # Pass
  }
}

If i was to do it that way... Why did you put a $1 in replacement for the actual Password though?

 Respond  
blackvenomm666   -  May 05, 2011
alias ident {
    if ($me isop #) {
      mode # -o $me
      return
    }
    services identify # $1 
  }
}
 Respond  
Infinity   -  May 05, 2011

ah, I didn't think of it that way. I also should have noted that in my original code you don't need the else if with the (($1 == !ident)). You could also just use else instead to eliminate that little extra bit.

Thanks Jethro_

 Respond  
Jethro   -  May 05, 2011

I believe you only need one command for !ident:

on *:input:#:{
  if ($1 == !ident) {
    if ($me isop #) {
      mode # -o $me
      return
    }
    services identify # PASSWORD 
  }
}

No need to supply the cmd char.

 Respond  
napa182   -  May 05, 2011

nice to see that chatspace servers are still in use.. lol

 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.