mirror of
https://github.com/reality/dbot.git
synced 2024-12-11 21:39:37 +01:00
fixy fixy
This commit is contained in:
parent
66ead26635
commit
6d4291c564
@ -140,10 +140,10 @@ var report = function(dbot) {
|
|||||||
cChan + "\u000f";
|
cChan + "\u000f";
|
||||||
}
|
}
|
||||||
|
|
||||||
_.each(message.match(/@([\d\w\s*|-]+?)/g), function(user) {
|
_.each(message.match(/ @([\d\w\s*|-]+?)( |$)/g), function(user) {
|
||||||
notifier += '[' + colours['nicks'] + user + '\u000f]';
|
notifier += '[' + colours['nicks'] + user + '\u000f]';
|
||||||
});
|
});
|
||||||
message = message.replace(/ ( |$)/g, " " + colours['nicks'] +
|
message = message.replace(/ @([\d\w\s*|-]+?)( |$)/g, " " + colours['nicks'] +
|
||||||
"@$1\u000f ");
|
"@$1\u000f ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user