mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2014
Posts: 2
J
jar555 Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
J
Joined: Aug 2014
Posts: 2
How do I make a script when a specific user types a message, the bot will repeat the message that the user typed?

on *:text:*:#: {
if ($nick == jar555) {
msg # ????
} else {
}

Last edited by jar555; 15/08/14 08:40 AM.
Joined: Mar 2010
Posts: 146
Vogon poet
Offline
Vogon poet
Joined: Mar 2010
Posts: 146
Code:
on *:Text:*:#: {
  if ($nick == jar555) {
    msg # $1-
  }
  else { }
}


Btw, this is not PHP. You can't write the else part like that. Either it should be on a new line or add a pipe before it.


Nothing...
Joined: Aug 2014
Posts: 2
J
jar555 Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
J
Joined: Aug 2014
Posts: 2
Thanks!


Link Copied to Clipboard