mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2015
Posts: 40
J
jimieo Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2015
Posts: 40
Code:
on *:text:!test*:#:{
    msg $chan This is a test
  }
}


I prefer to include the * after the command to allow people to type a message with the command use.

The only thing that drives me insane, is that if someone does "!testicles" the !test command still works. Is there a way to still allow !test* to work, but block extra characters with the command?

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
2 ways, assuming I interpret your request correctly.
Code:
;on *:text:!test *:#: {
;or
;if ($1 != test) return


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Jan 2015
Posts: 40
J
jimieo Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2015
Posts: 40
Once again you rescue me. Thank you Nillens.

Code:
on *:text:!test*:#:{
  if ($1 != !test) return
  else {
    msg $chan this is a test
  }
}


This worked exactly as I needed.


Link Copied to Clipboard