mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Fix chat messages starting with numbers being stuffed on IRC
This commit is contained in:
parent
ed6a0bed16
commit
adf174900c
@ -57,6 +57,10 @@ namespace MCGalaxy.Blocks.Physics {
|
|||||||
DoOther(lvl, ref C, ref args);
|
DoOther(lvl, ref C, ref args);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// cache to avoid allocation each time accessed
|
||||||
|
internal static ExtraInfoHandler doorsHandler = DoDoorsOnly;
|
||||||
|
internal static ExtraInfoHandler normalHandler = DoNormal;
|
||||||
|
|
||||||
static void ParseType(byte type, ref ExtraInfoArgs args, byte value) {
|
static void ParseType(byte type, ref ExtraInfoArgs args, byte value) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
@ -135,10 +135,10 @@ namespace MCGalaxy {
|
|||||||
const uint mask = PhysicsArgs.TypeMask;
|
const uint mask = PhysicsArgs.TypeMask;
|
||||||
|
|
||||||
HandlePhysics[] handlers = physicsHandlers;
|
HandlePhysics[] handlers = physicsHandlers;
|
||||||
ExtraInfoHandler extraHandler = ExtraInfoPhysics.DoNormal;
|
ExtraInfoHandler extraHandler = ExtraInfoPhysics.normalHandler;
|
||||||
if (physics == 5) {
|
if (physics == 5) {
|
||||||
handlers = physicsDoorsHandlers;
|
handlers = physicsDoorsHandlers;
|
||||||
extraHandler = ExtraInfoPhysics.DoDoorsOnly;
|
extraHandler = ExtraInfoPhysics.doorsHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
PhysInfo C;
|
PhysInfo C;
|
||||||
|
@ -28,7 +28,7 @@ namespace MCGalaxy {
|
|||||||
|
|
||||||
/// <summary> Manages a connection to an IRC server, and handles associated events. </summary>
|
/// <summary> Manages a connection to an IRC server, and handles associated events. </summary>
|
||||||
public sealed class IRCBot {
|
public sealed class IRCBot {
|
||||||
public const string ResetSignal = "\x0F\x03";
|
public const string ResetSignal = "\x03\x0F";
|
||||||
internal Connection connection;
|
internal Connection connection;
|
||||||
internal string[] channels, opchannels;
|
internal string[] channels, opchannels;
|
||||||
internal string nick, server;
|
internal string nick, server;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user