1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Implement basic chat functionality

This commit is contained in:
NGnius (Graham)
2025-04-14 21:17:41 -04:00
parent 4d2ddaeafb
commit 792a6362e3
37 changed files with 1119 additions and 34 deletions

View File

@@ -36,3 +36,27 @@ pub enum WebServicesError {
UsernameTooShort = 206,
SaleEnded = 207
}
#[repr(i16)]
#[allow(dead_code)]
#[derive(Debug)]
pub enum ChatErrorCodes {
None = 0,
UnexpectedError = 1,
Flood = 2,
Muted = 3,
NotOnline = 4,
DoesNotExist = 5,
NoConnection = 6,
ModeratorsOnly = 7,
AdminsOnly = 8,
SanctionAlreadyExists = 9,
AlreadyWarned = 10,
NoSanctionExists = 11,
MaintenanceMode = 12,
ChannelExists = 13,
IncorrectPassword = 14,
ChannelNotExists = 15,
PasswordRequired = 16,
ChannelExpired = 17,
}