mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-18 12:31:26 +02:00
Fix xmpp format stripping
This commit is contained in:
@@ -2,6 +2,7 @@ package com.earth2me.essentials.xmpp;
|
|||||||
|
|
||||||
import com.earth2me.essentials.api.IReload;
|
import com.earth2me.essentials.api.IReload;
|
||||||
import com.earth2me.essentials.api.IUser;
|
import com.earth2me.essentials.api.IUser;
|
||||||
|
import com.earth2me.essentials.utils.Util;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.logging.Handler;
|
import java.util.logging.Handler;
|
||||||
@@ -59,7 +60,7 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager
|
|||||||
disconnect();
|
disconnect();
|
||||||
connect();
|
connect();
|
||||||
}
|
}
|
||||||
chat.sendMessage(message.replaceAll("§[0-9a-f]", ""));
|
chat.sendMessage(Util.stripFormat(message));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user