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