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:
2016-06-05 13:12:52 +00:00
parent 08dac879d7
commit 04789675ea
5 changed files with 21 additions and 955 deletions

View File

@ -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;