Protocols/OSCAR/SNAC/CHAT CHANNEL MSG TO HOST

From NINA Wiki
Revision as of 02:28, 13 February 2021 by AD (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
OSCAR Protocol
IntroductionTermsClients
Basic
DatatypesFLAPSNACTLV
UUIDsErrorsTool IDs
Host Interaction
Rate LimitsMigrationMessages
Other Services
ADMINADVERTALERT
BARTBOSBUCPCHAT
CHAT_NAV
Tutorials
Sign OnBARTRendezvous
ICBMLocateBuddies
Foodgroups
OSERVICE (0x0001)
LOCATE (0x0002)
BUDDY (0x0003)
ICBM (0x0004)
ADVERT (0x0005)
INVITE (0x0006)
ADMIN (0x0007)
POPUP (0x0008)
PD (0x0009)
USER_LOOKUP (0x000A)
STATS (0x000B)
TRANSLATE (0x000C)
CHAT_NAV (0x000D)
CHAT (0x000E)
ODIR (0x000F)
BART (0x0010)
FEEDBAG (0x0013)
ICQ (0x0015)
BUCP (0x0017)
ALERT (0x0018)
PLUGIN (0x0022)
UNNAMED_FG_24 (0x0024)
MDIR (0x0025)
ARS (0x044A)
ID Origin Name Foodgroup Service Status Version
0x000E, 0x0005 Client CHAT__CHANNEL_MSG_TO_HOST Unspecified CHAT Active 1.10

Channel message from client.

SNAC Header

Foodgroup uint16 (word) 00 0E
Subgroup uint16 (word) 00 05
Flags uint16 (word) 00 00
Request ID uint32 (dword) 00 00 00 00

SNAC Data

Unconfirmed: This SNAC contains no data

From Aleksandr Shutko: SNAC(0E,05) channel3 message from client to chat room

SNAC(0E,05)  CHAT__CHANNEL_MSG_TOHOST 

This is the message from client to chat server (chat room). AIM chat use only channel 3 messages. Reflection flag used to receive own messages.

 00 0E   word   SNAC family
 00 05   word   SNAC subtype
 00 00   word   SNAC flags
 xx xx xx xx   dword   SNAC request-id
   xx xx xx xx
 xx xx xx xx
  qword   msg-id cookie
   00 03   word   message channel
 00 01   word   TLV.Type(0x01) - public/whisper flag
 00 00   word   TLV.Length
 empty (no tlv data)
 00 06   word   TLV.Type(0x06) - enable reflection flag
 00 00   word   TLV.Length
 empty (no tlv data)
 00 05   word   TLV.Type(0x05) - message information
 xx xx   word   TLV.Length
 00 02   word   TLV.Type(0x02) - message encoding
 xx xx   word   TLV.Length
 xx ..   ascii   Encoding name string
 00 03   word   TLV.Type(0x03) - message language
 xx xx   word   TLV.Length
 00 00   word   Message language abbr
 00 01   word   TLV.Type(0x01) - message language
 xx ..   word   TLV.Length
 xx ..   word   Message text (HTML text)



Example SNAC dumps with flap header:


  2A 02 6A D8 00 88 00 0E 00 05 00 00 00 00 00 05  *.j.............
  33 41 35 36 35 43 38 37 00 03 00 01 00 00 00 06  3A565C87........
  00 00 00 05 00 68 00 02 00 08 75 73 2D 61 73 63  .....h....us-asc
  69 69 00 03 00 02 65 6E 00 01 00 52 3C 48 54 4D  ii....en...R<HTM
  4C 3E 3C 42 4F 44 59 20 42 47 43 4F 4C 4F 52 3D  L><BODY BGCOLOR=
  22 23 66 66 66 66 66 66 22 3E 3C 46 4F 4E 54 20  "#ffffff"><FONT
  4C 41 4E 47 3D 22 30 22 3E 48 69 2E 2E 2E 2E 20  LANG="0">Hi....
  41 6E 79 62 6F 64 79 20 3F 3C 2F 46 4F 4E 54 3E  Anybody ?</FONT>
  3C 2F 42 4F 44 59 3E 3C 2F 48 54 4D 4C 3E        </BODY></HTML>


CHAT SNACs

SNAC List
Subgroup Origin Name
0x0001 Any CHAT__ERR
This is the error SNAC for the CHAT foodgroup.
0x0002 Host CHAT__ROOM_INFO_UPDATE
Room information update.
0x0003 Host CHAT__USERS_JOINED
User or users join room notification.
0x0004 Host CHAT__USERS_LEFT
User or users left room notification.
0x0005 Client CHAT__CHANNEL_MSG_TOHOST
Channel message from client.
0x0006 Host CHAT__CHANNEL_MSG_TOCLIENT
Channel message to client.
0x0007 Client CHAT__EVIL_REQUEST
Chat evil request.
0x0008 Host CHAT__EVIL_REPLY
Chat evil reply.
0x0009 Any CHAT__CLIENT_ERR
Error from client or host related to chat.
0x000A Host CHAT__PAUSE_ROOM_REQ
Host request to client to pause all SNACs to chat.
0x000B Client CHAT__PAUSE_ROOM_ACK
Client confirmation of CHAT__PAUSE_ROOM_REQ.
0x000C Host CHAT__RESUME_ROOM
Host notification to client to resume SNACs.
0x000D Client CHAT__SHOW_MY_ROW
This is not currently documented. Want to contribute?
0x000E Client CHAT__SHOW_ROW_BY_USERNAME
This is not currently documented. Want to contribute?
0x000F Client CHAT__SHOW_ROW_BY_NUMBER
This is not currently documented. Want to contribute?
0x0010 Client CHAT__SHOW_ROW_BY_NAME
This is not currently documented. Want to contribute?
0x0011 NCD CHAT__ROW_INFO
This is not currently documented. Want to contribute?
0x0012 Client CHAT__LIST_ROWS
This is not currently documented. Want to contribute?
0x0013 NCD CHAT__ROW_LIST_INFO
This is not currently documented. Want to contribute?
0x0014 NCD CHAT__MORE_ROWS
This is not currently documented.
0x0015 Client CHAT__MOVE_TO_ROW
This is not currently documented.
0x0016 Client CHAT__TOGGLE_CHAT
This is not currently documented.
0x0017 Client CHAT__SEND_QUESTION
This is not currently documented.
0x0018 Client CHAT__SEND_COMMENT
This is not currently documented.
0x0019 Client CHAT__TALLY_VOTE
This is not currently documented.
0x001A Client CHAT__ACCEPT_BID
This is not currently documented.
0x001B Client CHAT__SEND_INVITE
This is not currently documented.
0x001C Client CHAT__DECLINE_INVITE
This is not currently documented.
0x001D Client CHAT__ACCEPT_INVITE
This is not currently documented.
0x001E NCD CHAT__NOTIFY_MESSAGE
This is not currently documented.
0x001F NCD CHAT__GOTO_ROW
This is not currently documented.
0x0020 Host CHAT__STAGE_USER_JOIN
This is not currently documented.
0x0021 Host CHAT__STAGE_USER_LEFT
This is not currently documented.
0x0022 NCD CHAT__UNNAMED_SNAC_22
This is not currently documented.
0x0023 NCD CHAT__CLOSE
This is not currently documented.
0x0024 Client CHAT__USER_BAN
This is not currently documented.
0x0025 Client CHAT__USER_UNBAN
This is not currently documented.
0x0026 Host CHAT__JOINED
This is not currently documented.
0x0027 NCD CHAT__UNNAMED_SNAC_27
This is not currently documented.
0x0028 NCD CHAT__UNNAMED_SNAC_28
This is not currently documented.
0x0029 NCD CHAT__UNNAMED_SNAC_29
This is not currently documented.
0x0030 Host CHAT__ROOM_INFO_OWNER
This is not currently documented.