mIRC Home    About    Download    Register    News    Help

Print Thread
#251761 02/03/15 09:01 PM
Joined: Mar 2015
Posts: 4
T
TruCK Offline OP
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Mar 2015
Posts: 4
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.

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
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


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Mar 2015
Posts: 4
T
TruCK Offline OP
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Mar 2015
Posts: 4
I saw that script before I created my account. ON that script where would I add "good morning"

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
/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-) { }
}


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Mar 2015
Posts: 4
T
TruCK Offline OP
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Mar 2015
Posts: 4
thanks,
on *:text:*good morning*:#: { }
is what I was looking for.

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
That will trigger for any user and not just from JoJo.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Mar 2015
Posts: 4
T
TruCK Offline OP
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Mar 2015
Posts: 4
How would I set it to a specific user?

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
if ($nick == username) { }
read the help files I provided


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net

Link Copied to Clipboard