auto owner id

By Cheiron on May 16, 2008

ok... we are back to basics with a stupidly simple snippet. this is just something i knocked up purely out of boredom as a change to all the complex scripts being submitted for once. this is for those who have co-founder status (ie founder password for a channel) to set mode +q (owner) on yourself upon joining a room. this script will work regardless of nick and mode setting on the nick ( ie +v +h +o +&)

change the #channel to what channel you want it to work on.
change password to the founder's password for the channel.

Rate it and comment on it purely on it's working ability. :)

on *:JOIN:#channel: { 
  if ($nick == $me) {  /msg chanserv identify #channel password
    /msg chanserv owner 
} 
}

Comments

Sign in to comment.
SnoooP   -  May 21, 2008

haha... Nice one Noutrious... Looks better and is neater...

 Respond  
Noutrious   -  May 21, 2008
on *:JOIN:#channel: { 
  if ($nick == $me) {  /msg chanserv identify #channel password
    /msg chanserv owner 
} 
}

Looks pretty bad from the stylish way.. Why not to use:

on *:LOAD:set %autoid_channel $$?=\"Enter channel name:\" | set %autoid_password $$?=\"Enter password:\"
on *:JOIN:%autoid_channel:if ($nick = $me) && (%autoid_password) { .msg chanserv identify $chan %autoid_password | .msg chanserv owner }

This would do four edits differencing from yours:

  1. When script is first runned, it allows user to easily set channel, password.
  2. channel isn\'t needed to change manually in the remotes anymore.

  3. The messages sent to chanserv are silenced down (not echoed)
  4. And the scripting style :)
 Respond  
Cheiron   -  May 16, 2008

many thanks mountaindew

 Respond  
SnoooP   -  May 16, 2008

ok mountaindew replied before mine lmao :P~~

 Respond  
SnoooP   -  May 16, 2008

got me there lol.... not quite sure to be perfectly honest...

  • Snoopy Looks At MountainDew
 Respond  
guest598594   -  May 16, 2008

| seperates statements
|| means or

if ($nick == MountainDew || $nick isop $chan) { mode $chan +o $nick | msg $chan Yo welcome to $chan }
 Respond  
Cheiron   -  May 16, 2008

question for you... what is the difference between the | and ||

 Respond  
SnoooP   -  May 16, 2008

lol same here im rather tired tbh lol... ^^^ only to shorten it really tbh lol... its fine actually the way it is though :) i just use | were i can to shorten things

 Respond  
Cheiron   -  May 16, 2008

!
^ ^
( @.@ )



brain fried............  02:15am and i still going lol. yeah it works that way too
 Respond  
SnoooP   -  May 16, 2008

urmmm one thing i like doing is making scripts as small as possible lol...

  if ($nick == $me) {  /msg chanserv identify #channel password
    /msg chanserv owner 

tooo

  if ($nick == $me) {  /msg chanserv identify #channel password | /msg chanserv owner }

Just a suggestion

 Respond  
Cheiron   -  May 16, 2008

fixed and edited.. cheers mountaindew.. i knew there was a reason i made this with 2 if statements lol.... 1.. brain dead.. 2 it worked. :P

 Respond  
SnoooP   -  May 16, 2008

lmao :P hey its 2 am nearly give him a break lmao

 Respond  
guest598594   -  May 16, 2008
on *:JOIN:#channel: { 
  if ($nick == $me)   /msg chanserv identify #channel password
    /msg chanserv owner 
} 

Damn, you sure are tired.

on *:event:{
  if (if statement) {
    ;line 1
    ;line 2 
  }
}

:P

 Respond  
SnoooP   -  May 16, 2008

:):) its all we ask lmao :P i have somethin on the same lines as that... well did hve it can be usefull xD

 Respond  
Cheiron   -  May 16, 2008

oh yes.. despite the 2 errors there.. one of which i was not aware of (the second if statement) it works perfectly

 Respond  
SnoooP   -  May 16, 2008

it is basic... but hey it still works doesnt it ? lol ;)

 Respond  
Cheiron   -  May 16, 2008

it is 01:38 in the morning and i been up since 07:00 yesterday. not thinking too straight regards the on join. lemme edit it... done.... as for the 2 if statements. didnt know about that only needing the one. much thankies mountaindew :)

 Respond  
guest598594   -  May 16, 2008

How come you use the ^ if you\'re not halting?

Also, you don\'t need two of the same if statements -.-

 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.