Cytubefilters, part 1
This commit is contained in:
parent
709724efd4
commit
aa5e50f1d2
2 changed files with 133 additions and 138 deletions
|
|
@ -315,7 +315,7 @@ ChatModule.prototype.filterMessage = function (msg) {
|
|||
/* substring is a URL */
|
||||
if (convertLinks && parts[j].match(link)) {
|
||||
var original = parts[j];
|
||||
parts[j] = filters.exec(parts[j], { filterlinks: true });
|
||||
parts[j] = filters.filter(parts[j], true);
|
||||
|
||||
/* no filters changed the URL, apply link filter */
|
||||
if (parts[j] === original) {
|
||||
|
|
@ -325,7 +325,7 @@ ChatModule.prototype.filterMessage = function (msg) {
|
|||
|
||||
} else {
|
||||
/* substring is not a URL */
|
||||
parts[j] = filters.exec(parts[j], { filterlinks: false });
|
||||
parts[j] = filters.filter(parts[j], false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue