~ted/pidgin/12_sounds_and_timers.patch

« back to all changes in this revision

Viewing changes to libpurple/protocols/yahoo/yahoo.h

  • Committer: Bazaar Package Importer
  • Date: 2009-01-09 16:53:41 UTC
  • Revision ID: jamesw@ubuntu.com-20090109165341-88jod346extjt25n
Tags: upstream-ubuntu-2.5.3
ImportĀ upstreamĀ versionĀ 2.5.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
 
183
183
#define YAHOO_MAX_STATUS_MESSAGE_LENGTH (255)
184
184
 
 
185
/*
 
186
 * Current Maximum Length for Instant Messages
 
187
 *
 
188
 * This was found by experiment.
 
189
 *
 
190
 * The YMSG protocol allows a message of up to 948 bytes, but the official client
 
191
 * limits to 800 characters.  According to experiments I conducted, it seems that
 
192
 * the discrepancy is to allow some leeway for messages with mixed single- and
 
193
 * multi-byte characters, as I was able to send messages of 840 and 932 bytes
 
194
 * by using some multibyte characters (some random Chinese or Japanese characters,
 
195
 * to be precise). - rekkanoryo
 
196
 */
 
197
#define YAHOO_MAX_MESSAGE_LENGTH_BYTES 948
 
198
#define YAHOO_MAX_MESSAGE_LENGTH_CHARS 800
 
199
 
185
200
/* sometimes i wish prpls could #include things from other prpls. then i could just
186
201
 * use the routines from libfaim and not have to admit to knowing how they work. */
187
202
#define yahoo_put16(buf, data) ( \