Flags.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
  3. * All rights reserved. Distributed under the terms of the MIT license.
  4. */
  5. #ifndef FLAGS_H
  6. #define FLAGS_H
  7. // AUTOJOIN, AUTOCREATE, LOG, POPULATE, NOTIFY
  8. // Auto-join on login, auto-create on login (non-persistent rooms), keep local
  9. // logs, populate chat with local logs on join, notify on direct message,
  10. // notify on all new messages…
  11. // JCLP
  12. // 0000
  13. #define ROOM_AUTOJOIN 1
  14. #define ROOM_AUTOCREATE 2
  15. #define ROOM_LOG_LOCALLY 4
  16. #define ROOM_POPULATE_LOGS 8
  17. #define ROOM_NOTIFY_DM 16
  18. #define ROOM_NOTIFY_ALL 32
  19. // NAME, SUBJECT, ROLECHANGE, BAN, KICK, DEAFEN, MUTE, NICK, READ, WRITE
  20. // Set name of room, set subject, change user's "role" (permission presets
  21. // defined by the protocol), etc…
  22. // NSRBKDMNRW
  23. // 0000000000
  24. #define PERM_WRITE 1
  25. #define PERM_READ 2
  26. #define PERM_NICK 4
  27. #define PERM_MUTE 8
  28. #define PERM_DEAFEN 16
  29. #define PERM_KICK 32
  30. #define PERM_BAN 64
  31. #define PERM_ROLECHANGE 128
  32. #define PERM_ROOM_SUBJECT 256
  33. #define PERM_ROOM_NAME 512
  34. #define PERM_ALL 1023
  35. #endif // FLAGS_H