Protocols/MSNP/Commands/SBP

From NINA Wiki
Revision as of 15:33, 7 May 2009 by AD (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SBP

The SBP command is used to update your copy of a buddy's detail.

MSNP11 - MSNP12

The official client (even older ones that doesn't support contact renaming) use this command when it ecounters a new friendly name for a buddy in NLN or ILN. It's not required to use this command, but if you don't use it, you'll be receiving the old the friendly name for the buddy when synchronizing. One can also use this command to rename buddies to arbitrary names.

SBP <TrID> <Contact's GUID> <Setting> <URL-Encoded Value>\r\n

<Setting> should be MFN for changing the contact's friendly name.

>>> SBP 20 12345678-aabb-5678-1234-a72f38da3c10 MFN John%20Smith\r\n

The server will echo the command back upon success.

<<< SBP 20 12345678-aabb-5678-1234-a72f38da3c10 MFN John%20Smith\r\n

It is not confirmed whether <Setting> can take other values than MFN.

MSNP13 and above

The command is deprecated, as the NS no longer does the address book synchronization (you do it instead). Usage results in immediate disconnection.