forked from cory/tildefriends
Move xmpp2 to libxmpp and irc to libirc. Sidestep IRC encoding problems.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3239 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -404,6 +404,11 @@ function niceTime(lastTime, thisTime) {
|
||||
function formatMessage(message) {
|
||||
var result;
|
||||
if (typeof message == "string") {
|
||||
for (let i = 0; i < message.length; i++) {
|
||||
if (message.charCodeAt(i) > 128 && message.charCodeAt(i) < 256) {
|
||||
message = message.substring(0, i) + "?" + message.substring(i + 1);
|
||||
}
|
||||
}
|
||||
result = [];
|
||||
var regex = /(\w+:\/*\S+?)(?=(?:[\.!?])?(?:$|\s))/gi;
|
||||
var match;
|
||||
|
Reference in New Issue
Block a user