On Join Message

By MartyniP on Apr 05, 2010

When a User Join The will be messaged with:
-^MARTYNI^- The Topic Is: WebStyles.tk
-^MARTYNI^- Please Register by typing /ns register YOURPASSWORD YOUREMAIL
-^MARTYNI^- Please add Auto join by typing: /ns ajoin add #martyni

; Created by Martyni Productions
; http://www.martynip.co.cc
; irc.geekshed.net/martyni

ON *:JOIN:#: {
  if ($nick == $me) || ($nick == YOURNAME) || ($nick == BOTNAME) halt
  msg BotServ  SAY $chan Welcome $nick To $chan
  notice $nick The Topic Is: $chan(#).topic
  notice $nick Please Register by typing /ns register YOURPASSWORD YOUREMAIL 
  notice $nick Please add Auto join by typing: /ns ajoin add $chan
}

Comments

Sign in to comment.
Jethro   -  May 15, 2010

Marty, that still doesn't change the fact that you're not an OP upon entry to a channel. This is what napa meant:

on !*:join:#: {
$+(.timer,$nick,$network) 1 2 opcheck $nick $chan
}
alias -l opcheck { 
if ($1 isop $2) { 
;do something 
}
 Respond  
napa182   -  May 08, 2010

MartyniP Said

Keon191, you could use
if ($nick isop $chan) {
; Message code here
}
MartyniP that wont work cuz when you join a chan you are not an op. there is a delay till any mode is set.
you would have to use a timer to check mode status or a combo of a timer an alias

 Respond  
MartyniP   -  May 08, 2010

Keon191, you could use

if ($nick isop $chan) {
; Message code here
}
 Respond  
Jethro   -  Apr 05, 2010

Keon191, you need to make a timer and alias to check if a user is an op or not. Every one is a regular user upon joining a channel until +o mode is set on him or her. This has been asked before, and napa182 has made an example regarding this matter.

 Respond  
Keon191   -  Apr 05, 2010

hey i was wondering if there was a join message for mods/op only...

 Respond  
PuNkTuReD   -  Apr 05, 2010

most servers display a msg containing the topic when a user enters the channel.
you should add a check to see if the user is infact not identified to ns before telling them how to register.

 Respond  
Jethro   -  Apr 05, 2010

This:> ON *:JOIN:#: {
if ($nick == $me) || ($nick == YOURNAME) || ($nick == BOTNAME) halt
Should be:

ON !*:JOIN:#: {
  if ($nick != BOTNAME) {

The ! prefix tells mirc not to trigger on your own join. The nick == $me is not required since ! will take care of that. You can use != to negate, rather than halting.

 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.