Update MediaWiki page '135 Protocol'

This commit is contained in:
Protocol 2012-11-08 15:51:40 +00:00 committed by moparisthebest
parent 33cc15c434
commit 0445fb790e

View File

@ -76,6 +76,15 @@ This page refers to the RSC #135 client revision.
(.put-int64 name)
(.end-packet)))
;; Opcode: 28
;; name is long representation of username, message is byte representation of message (.getBytes message), length is length of message (maximum length is 200)
(defn send-message [stream name message length]
(doto stream
(.begin-packet 28)
(.put-int64 username)
(.read-bytes message 0 length)
(.end-packet)))
;; Opcode: 29
(defn add-ignore [stream username] ; username is string representation of username
(let [name (Util/name-for-long username)]