Changes in / [bd5eee3:75610c3]
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/user-guide/commands.xml
rbd5eee3 r75610c3 663 663 </bitlbee-setting> 664 664 665 <bitlbee-setting name="message_length" type="integer" scope="account">666 <default>140</default>667 668 <description>669 <para>670 Since Twitter rejects messages longer than 140 characters, BitlBee can count message length and emit a warning instead of waiting for Twitter to reject it.671 </para>672 673 <para>674 You can change this limit here but this won't disable length checks on Twitter's side. You can also set it to 0 to disable the check in case you believe BitlBee doesn't count the characters correctly.675 </para>676 </description>677 678 </bitlbee-setting>679 680 665 <bitlbee-setting name="mode" type="string" scope="account"> 681 666 <possible-values>one, many, chat</possible-values> -
protocols/oscar/oscar.c
rbd5eee3 r75610c3 2659 2659 2660 2660 c = imcb_chat_new(ic, chatname); 2661 2661 2662 ret = oscar_chat_join(ic, chatname, NULL, NULL); 2663 2662 2664 aim_chat_invite(od->sess, od->conn, who, "", 4, chatname, 0x0); 2663 2665 -
protocols/twitter/twitter.c
rbd5eee3 r75610c3 144 144 } 145 145 146 static gboolean twitter_length_check( struct im_connection *ic, gchar *msg )147 {148 int max = set_getint( &ic->acc->set, "message_length" ), len;149 150 if( max == 0 || ( len = g_utf8_strlen( msg, -1 ) ) <= max )151 return TRUE;152 153 imcb_error( ic, "Maximum message length exceeded: %d > %d", len, max );154 155 return FALSE;156 }157 158 146 static void twitter_init( account_t *acc ) 159 147 { 160 148 set_t *s; 161 162 s = set_add( &acc->set, "message_length", "140", set_eval_int, acc );163 149 164 150 s = set_add( &acc->set, "mode", "one", set_eval_mode, acc ); … … 245 231 } 246 232 } 247 else if( twitter_length_check(ic, message) )233 else 248 234 twitter_post_status(ic, message); 249 235 } … … 276 262 static void twitter_chat_msg( struct groupchat *c, char *message, int flags ) 277 263 { 278 if( c && message && twitter_length_check(c->ic, message))264 if( c && message ) 279 265 twitter_post_status(c->ic, message); 280 266 } -
protocols/yahoo/yahoo.c
rbd5eee3 r75610c3 832 832 YList *m; 833 833 834 if( g_strcasecmp( who, ic->acc->user ) == 0 )835 /* WTF, Yahoo! seems to echo these now? */836 return;837 838 834 inv = g_malloc( sizeof( struct byahoo_conf_invitation ) ); 839 835 memset( inv, 0, sizeof( struct byahoo_conf_invitation ) );
Note: See TracChangeset
for help on using the changeset viewer.