mirror of
https://github.com/CPunch/Laika.git
synced 2025-10-06 16:10:14 +00:00
Bot: small shell.[ch] + native refactor
- `struct sLaika_shell` is now a shared struct, `struct sLaika_RAWshell` is the native implementation with `struct sLaika_shell` as it's first member
This commit is contained in:
@@ -90,10 +90,8 @@ void shellC_handleRmvPeer(struct sLaika_peer *peer, LAIKAPKT_SIZE sz, void *uDat
|
||||
type = laikaS_readByte(&peer->sock);
|
||||
|
||||
/* ignore panel clients */
|
||||
if (type == PEER_AUTH) {
|
||||
LAIKA_DEBUG("got auth!\n");
|
||||
if (type == PEER_AUTH)
|
||||
return;
|
||||
}
|
||||
|
||||
if ((bot = shellC_getPeerByPub(client, pubKey, &id)) == NULL)
|
||||
LAIKA_ERROR("LAIKAPKT_AUTHENTICATED_RMV_PEER_RES: Unknown peer!\n");
|
||||
|
Reference in New Issue
Block a user