./join

By amztechtalk on Jun 02, 2010

just do ./join then the chan and your bot should join the chan you said.

on *:TEXT:./join #*:#: {
if ($nick == YOURNICK) || ($nick == OPTIONAL) {
/join $2-
}
else {
msg $chan Sorry $nick, you do not have permission to use this command.
}
}

Comments

Sign in to comment.
GuitarMasterx7   -  Jun 04, 2010

mmm.... Spaghetti....
srry but what ever u said was blocked out by the
focus of me liking Spaghetti
<3 lolz

 Respond  
Jethro   -  Jun 04, 2010

GuitarMasterx7, it's spaghetti without the meatballs. Many call the goto coding style as that of spaghetti. Now meatballs, as I coin it, will simply be referred to as the if-elseif-else conditions that come with a little chunk after chunk. :p

 Respond  
GuitarMasterx7   -  Jun 04, 2010

looks like they were using hawkee as a pastebin =/
ha

an Jethro_ i like that coding style
it looks like If Statements but more interesting
=o
how would i go about learning more about it xD

 Respond  
Jamiie   -  Jun 02, 2010

ikr

 Respond  
napa182   -  Jun 02, 2010

looks like they were using hawkee as a pastebin =/

 Respond  
Jethro   -  Jun 02, 2010

You could have combined the quit, join, cycle, and identify part of your code into one snippet, using one text event. I have no idea why you posted them separately:

on $*:text:/^.\/(join\s\43\S+|quit|cycle|identify)\z/iS:#:{
  if !%f {
    inc -u4 %f
    if $istok(*!*@YourHost *!*@Optional,$wildsite,32) {
      goto $regml(1)
      :join
      join $2- 
      halt
      :quit
      quit
      halt
      :cycle
      hop -c #
      halt
      :identify
      nick $mnick
      msg nickserv ghost $mnick pass
      halt
    }
    else { 
      msg # Sorry $nick $+ , you do not have permission to use $+(./,$regml(1)) $+ .
    }
  }
}

You can use mirc's /hop -c # in place of /cycle. I'm a little unsure as to why you use the ghost command in this case...

You should use the host for certain people to use the code. Using $nick is not safe because people can clone easily.

 Respond  
Jamiie   -  Jun 02, 2010

Pointless freakin scripts like this is why this website has pretty much gone to shit.

 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.