mIRC Home    About    Download    Register    News    Help

Print Thread
#161710 10/10/06 04:07 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
Code:
  
on !*:join:#: .timer 1 3 welcomecheck
alias welcomecheck {
  if ($nick isop $chan) {  
    checkop
  }
  else {
    greet
  }
} 

what's the right code to greet the person who joins the channel
op's greet and regular/voiced person have their own
types of greet message

#161711 10/10/06 04:16 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
ON *:JOIN:#chan:{
if ($nick isop #) { msg #chan Op greet }
else { msg #chan msg for voice and regular users }
}

unless you meant want a seperate msg for op voice and regular then its

ON *:JOIN:#chan:{
if ($nick isop #) { msg #chan Op greet }
elseif ($nick isvoice #) { msg #chan voice greet
else { msg #chan msg for regular users }
}


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
#161712 10/10/06 04:25 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Problem with your codes, is the fact that when a person joins a channel, they join it as a regular user. No one ever has ops, half-ops, or voice in a channel at the time of joining.

Code:
 on *:join:#chan:{
.timer 1 3 greet $nick $chan
}
alias greet {
if $1 isop $2 { .msg $2 Op Greeting }
elseif $1 ishop $2 { .msg $2 Half-Op Greeting }
elseif $1 isvoice $2 { .msg $2 Voice Greeting }
else { .msg $2 Regular user Greeting }
}
 

#161713 10/10/06 04:28 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Oh that's correct I was just typing code off the type of head I rarely use on JOIN events im mostly into ON INPUT or ON TEXT events


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
#161714 10/10/06 05:19 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
Thanks RusselB goin to try the code


Link Copied to Clipboard