[mw-devel] [Git][arthur/mw][master] Suggested protocol for who listings
Justin Mitchell
arthur at sucs.org
Tue Oct 6 13:39:24 BST 2015
Justin Mitchell pushed to branch master at Justin Mitchell / mw
Commits:
d83fb24c by Justin Mitchell at 2015-10-06T13:39:00Z
Suggested protocol for who listings
- - - - -
1 changed file:
- src/server/PROTOCOL
Changes:
=====================================
src/server/PROTOCOL
=====================================
--- a/src/server/PROTOCOL
+++ b/src/server/PROTOCOL
@@ -96,23 +96,38 @@ IPC_EVENT - an event occured
verbose - additional (amusing) texts
reason - justification (if any) the attacker gave
- List of types, and any additional fields
- zod - Zebedee of Death
- mrod - Magic Roundabout of Death
- gag - Apply gagging filter to user
- gag - name of gag to Apply
- ungag - remove gagging filters
-
IPC_ACTION - user requests an action
Body: (json)
type - type of event that occured
- target - who did the event happen to
- reason - optional reason why you did this
+ target - (optional) who to apply it to
+ reason - (optional) reason why you did this
+ List of types, and any additional fields
+ zod - Zebedee of Death
+ mrod - Magic Roundabout of Death
+ gag - Apply gagging filter to user
+ gag - name of gag to Apply
+ ungag - remove gagging filters
Response:
type - command request
target - victim
success=0|1
text - prefered acknowledgement text
+IPC_WHOLIST - list of all the users currently known to the system
+ Send an empty body one of these to the server to request a refresh
+ Respose: json array() each element being one session
+ pid - session idle
+ id - user id
+ name - username
+ realname - users actual name (if permitted)
+ idle - seconds idle
+ doing - doing info
+ dowhen - when doing last updated
+ perms - object of permissions
+ chatmode
+ chatprivs
+ protection
+
+
all other codes are old unformatted messages and are to be phased out,
most commonly used is IPC_TEXT which is raw text to be displayed
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/d83fb24cd2f97be2daae22daeed78a038318afe2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20151006/fe67a50c/attachment.html>
More information about the mw-devel
mailing list