mIRC Home    About    Download    Register    News    Help

Print Thread
#259421 19/11/16 08:07 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
on *:text:*www.twitch.tv/*:#x3pos:{
msg $chan .timeout $nick 20 no twitch link please.
}

how to ignore only my twitch channel link
www.twitch.tv/x3pos ?

Joined: Oct 2016
Posts: 14
F
Pikka bird
Offline
Pikka bird
F
Joined: Oct 2016
Posts: 14
I would not take for good fish that this works, as this is my first regex attempt, and don't have any means to test it atm.
Code:
ON *:TEXT:/www.twitch.tv\/^(x3pos)/i:#3pos:{


://i: the two slashes are just the start and end of regex, while the i at the end makes it case INsensitive

www.twitch.tv\/ the \ is to negate the / so it doesn't consider it as the regnex end slash

^(x3pos) I'm unsure if this is correct, but hopefully it will take it as "not x3pos"

Last edited by FoxInABox; 19/11/16 11:49 PM.
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
Code:
ON *:TEXT:/www.twitch.tv\/^(x3pos,https://www.twitch.tv/x3pos/v/101610663,https://www.twitch.tv/x3pos/subscribe?ref=below_video_subscribe_button)/i:#x3pos:{
  msg $chan .timeout $nick 20 no twitch link please.
}

doesnt work...what is wrong?

Joined: Oct 2016
Posts: 14
F
Pikka bird
Offline
Pikka bird
F
Joined: Oct 2016
Posts: 14
Code:
ON $*:TEXT:/www\.twitch\.tv\/(?!x3pos).*\/?/i:#x3pos:{


there needed to be a $ after ON, and the dots and slashes needed backslashes to be used in it, so the url should look like so:
www\.twitch\.tv\/
(?!x3pos) there should not be any x3pos after the url
.* then any character
\/? followed by a optional slash

I hope that's it ^^;; Took me long enough

Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
this is working thank you.

Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
ON $*:TEXT:/www\.twitch\.tv\/(?!x3pos)(?!products/x3pos/ticket?ref=below_video_subscribe_button).*\/?/i:#x3pos:{
msg $chan .timeout $nick 300 no twitch links.
}

own channel link working but
subscribe link not working help please.


Link Copied to Clipboard