mIRC Homepage

Relay on specific text

Posted By: TruCK

Relay on specific text - 02/03/15 09:01 PM

Hello,

I searched all over the forums before I made an account. I see some scripts out there that seem like they would be really close to what I need but not exactly.

I would like to have a relay script that will relay what is said on one chan on one server to another chan on a different server. I would also like it to filter only specific words.

Example I would like to see every time "JoJo" said "good morning" from the chan #hobbit on server irc.a.net relayed to chan #middleearth on server irc.b.net.

I dont care about when bilbo says anything else. only when he says something that contains good morning.
Posted By: Nillen

Re: Relay on specific text - 02/03/15 09:04 PM

Literally searched for 'relay'

For filtering words. If statements are used, and you might want to read up on regular expressions or use static wildcards.

/help if then else
/help on text
/help regular expressions
Posted By: TruCK

Re: Relay on specific text - 02/03/15 09:11 PM

I saw that script before I created my account. ON that script where would I add "good morning"
Posted By: Nillen

Re: Relay on specific text - 02/03/15 09:33 PM

/help on text
/help if then else
Type this into your editbox in mIRC and read these help files, they're very useful.

You can choose to use it either in the event or as the event.
on *:text:*good morning*:#: { }
on *:text:*:#: {
if (good morning isin $1-) { }
}
Posted By: TruCK

Re: Relay on specific text - 02/03/15 09:45 PM

thanks,
on *:text:*good morning*:#: { }
is what I was looking for.
Posted By: Nillen

Re: Relay on specific text - 02/03/15 09:47 PM

That will trigger for any user and not just from JoJo.
Posted By: TruCK

Re: Relay on specific text - 02/03/15 10:47 PM

How would I set it to a specific user?
Posted By: Nillen

Re: Relay on specific text - 02/03/15 11:16 PM

if ($nick == username) { }
read the help files I provided
© 2019 mIRC Discussion Forums