Top

Join message


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  6.5 (of 2 scores)
Date Added  Oct 19, 2007
Last Updated  Oct 07, 2008
Tags  greet  join  joinmessage  message  o  papaya 

Introduction

set a join message and when you join a channel it shows up :D
btw first script tell me how it is :o
Alt + R add to remotes :D
and also voices people :)

Grab the Code

on *:text:*:#: { 
  if ($istok(!sjoin !setjoin,$1,32)) { 
    if ($2 != $null) { 
      writeini joinmessage.ini joinmessage $nick  $2-
      msg $chan $nick $+ , Your join message has been set. To view it Type !vjoin.
    } 
    else Notice $Nick Syntax: !setjoin/!sjoin <message> 
  }
  if ($istok(!vjoin !viewjoin,$1,32)) { 
    if ($2 != $null) { 
      if ($readini(joinmessage.ini,joinmessage,$2) == $null) { 
        msg $chan No join message for $2 is found.. 
      }
      else msg $chan [ $+ $2 $+ ] $readini(joinmessage.ini,joinmessage,$2)
    } 
    else { 
      if ($readini(joinmessage.ini,joinmessage,$nick) == $null) { 
        msg $chan You dont have a join message.. D; !sjoin to add one. 
      }
      else msg $chan [ $+ $nick $+ ] $readini(joinmessage.ini,joinmessage,$nick)
    }
  } 
  if ($istok(!deljoin !djoin,$1,32)) { 
    if ($readini(joinmessage.ini,joinmessage,$nick) = $null) { 
      msg $chan You don't even have a join message retard.
    }
    else {
      remini joinmessage.ini joinmessage $nick 
      msg $chan Your join message has been deleted $nick $+ .
    }
  }
  if $istok(!help !commands,$1,32) { 
    notice $nick Commands are: !sjoin !setjoin !viewjoin !vjoin !djoin !deljoin 
  }
} 
on *:join:#: {
  mode $chan +v $nick 
  if ($readini(joinmessage.ini,joinmessage,$nick) != $null) { 
    msg $chan [ $+ $nick $+ ] $readini(joinmessage.ini,joinmessage,$nick) 
  }
  else notice $Nick You don't have a join message type !sjoin to make one. 
} 
 

Comments

  (10)  RSS
Freckle
Comments: 38
 
mIRC Snippet:  Join message
Posted on Oct 19, 2007 12:17 pm
Ok, you've done a nice job. You might also want to mention that it also voices the person that joins.
Bug:

if $readini(joinmessage.ini,joinmessage,$nick) != $null) {
msg $chan $readini(joinmessage.ini,joinmessage,$nick)
}

You forgot a ( :

if ($readini(joinmessage.ini,joinmessage,$nick) != $null)


What I do is just this: if ($2) or if ($readini(joinmessage.ini,joinmessage,$nick)) which just checks if it won't return as $null
HoNdAx707
Comments: 55
 
mIRC Snippet:  Join message
Posted on Oct 19, 2007 12:44 pm
Fixed thanks
and i didnt know about that ill work on that later
Tippy
Comments: 33
 
mIRC Snippet:  Join message
Posted on Oct 19, 2007 2:48 pm
You can also do..

Code:

on *:Join:#: {
/msg $nick Welcome to $chan
/msg $chan Welcome to $chan
if ($nick isop $chan) { msg $chan Moderator $nick has just signed in. }
}
}
HoNdAx707
Comments: 55
 
mIRC Snippet:  Join message
Posted on Oct 19, 2007 4:02 pm
yeah, later on ill work on a modlist sorta thing
cantseeme
Comments: 47
 
mIRC Snippet:  Join message
Posted on Oct 19, 2007 4:03 pm
on !*:JOIN:#: {
msg $nick I AM 1337
msg $chan I AM 1447
}

^^ you can not have if $nick isop $chan because on a join they can not be op'ed as they are just joining the channel. And you don't want to message yourself when you join... If you really want to make this better make it so it does not do it more then once a hour or something. (to prevent floods)
mountaindew
Comments: 1,826
 
mIRC Snippet:  Join message
Posted on Oct 19, 2007 6:09 pm
if ($2) {
if (!$2) {
_____________________________

tippy, what duz that have to do with an auto greet? :/
mountaindew
Comments: 1,826
 
mIRC Snippet:  Join message
Posted on Oct 19, 2007 6:10 pm
wait nvm i guess it duz
HoNdAx707
Comments: 55
 
mIRC Snippet:  Join message
Posted on Oct 19, 2007 6:36 pm
this is just a join message script... not anything to do with op or stuff.. just auto voice lol...
AdamRock
Comments: 12
 
mIRC Snippet:  Join message
Posted on Nov 1, 2008 5:40 pm
so when YOU/your bot joins the chat it says something?
mountaindew
Comments: 1,826
 
mIRC Snippet:  Join message
Posted on Nov 1, 2008 5:52 pm
Well the bot wouldn't be able to set the text because it uses an on text. But the bot would notice itself that it doesn't have one. To fix it so it just does it for other people, you'd do "on !*:join:#:{"

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom