mIRC Home    About    Download    Register    News    Help

Print Thread
#249353 25/11/14 11:59 PM
Joined: Nov 2014
Posts: 149
J
JuanAm Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: Nov 2014
Posts: 149
The nick it joins at #test channel as BoT[] and three random numbers.
e.g BoT[]345, BoT[]687 etc

I want to give modes at this nickname when it joins at he channel #test.
As can foresee the 3 numbers?
I do not accept '???' or '*'

Code:
on 1:JOIN:#test: {
  if ($nick == BoT[] ||($nick == BoT[]???) { .msg oper modos $nick +rBki | .msg oper op  $chan $nick | halt }
  else { return }
}

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
If the last three letters of the nick are the numbers just use
Code:
if (($len($nick) == 8) &&  ($left($nick,5) === BoT[]) && ($right($nick,3) isnum))


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Nov 2014
Posts: 149
J
JuanAm Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: Nov 2014
Posts: 149
Originally Posted By: Nillen
If the last three letters of the nick are the numbers just use
Code:
if (($len($nick) == 8) &&  ($left($nick,5) === BoT[]) && ($right($nick,3) isnum))


Works perfectly! Thank you! smile


Link Copied to Clipboard