2021-06-30 14:27:58 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
|
|
*/
|
|
|
|
#ifndef FLAGS_H
|
|
|
|
#define FLAGS_H
|
|
|
|
|
2021-08-19 00:59:03 -05:00
|
|
|
// AUTOJOIN, AUTOCREATE, LOG, POPULATE, NOTIFY
|
2021-06-30 14:27:58 -05:00
|
|
|
// Auto-join on login, auto-create on login (non-persistent rooms), keep local
|
2021-08-19 00:59:03 -05:00
|
|
|
// logs, populate chat with local logs on join, notify on direct message,
|
|
|
|
// notify on all new messages…
|
2021-06-30 14:27:58 -05:00
|
|
|
|
|
|
|
// JCLP
|
|
|
|
// 0000
|
|
|
|
|
|
|
|
#define ROOM_AUTOJOIN 1
|
|
|
|
#define ROOM_AUTOCREATE 2
|
|
|
|
#define ROOM_LOG_LOCALLY 4
|
|
|
|
#define ROOM_POPULATE_LOGS 8
|
2021-08-19 00:59:03 -05:00
|
|
|
#define ROOM_NOTIFY_DM 16
|
|
|
|
#define ROOM_NOTIFY_ALL 32
|
2021-06-30 14:27:58 -05:00
|
|
|
|
|
|
|
|
|
|
|
// NAME, SUBJECT, ROLECHANGE, BAN, KICK, DEAFEN, MUTE, NICK, READ, WRITE
|
|
|
|
// Set name of room, set subject, change user's "role" (permission presets
|
|
|
|
// defined by the protocol), etc…
|
|
|
|
|
|
|
|
// NSRBKDMNRW
|
|
|
|
// 0000000000
|
|
|
|
|
|
|
|
#define PERM_WRITE 1
|
|
|
|
#define PERM_READ 2
|
|
|
|
#define PERM_NICK 4
|
|
|
|
#define PERM_MUTE 8
|
|
|
|
#define PERM_DEAFEN 16
|
|
|
|
#define PERM_KICK 32
|
|
|
|
#define PERM_BAN 64
|
|
|
|
#define PERM_ROLECHANGE 128
|
|
|
|
#define PERM_ROOM_SUBJECT 256
|
|
|
|
#define PERM_ROOM_NAME 512
|
|
|
|
#define PERM_ALL 1023
|
|
|
|
|
|
|
|
#endif // FLAGS_H
|