mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-14 11:18:08 +00:00
Fixed bug in parsing MtEvent
This commit is contained in:
@@ -70,7 +70,7 @@ namespace MtClient
|
|||||||
if (pieces.Length == 3
|
if (pieces.Length == 3
|
||||||
&& int.TryParse(pieces[0], out int expertHandle)
|
&& int.TryParse(pieces[0], out int expertHandle)
|
||||||
&& int.TryParse(pieces[1], out int eventType))
|
&& int.TryParse(pieces[1], out int eventType))
|
||||||
return new MtEvent(expertHandle, eventType, payload);
|
return new MtEvent(expertHandle, eventType, pieces[2]);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user