Changes in / [416241f:85fa6e4]
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
editwin.c
rc471e85 r460fbe8 251 251 e->lock=e->bufflen; 252 252 oe_set_index(e, e->lock); 253 e->topindex = 0; 253 254 owl_editwin_redisplay(e, 0); 254 255 } … … 470 471 static void oe_reframe(owl_editwin *e) { 471 472 oe_excursion x; 472 int goal = e->winlines / 2;473 int goal = 1 + e->winlines / 2; 473 474 int index; 474 475 int count = 0; -
perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm
r0cfa6ee rb84feab 1229 1229 $props{xml} = $j->GetXML(); 1230 1230 1231 if ( $jtype eq 'chat' ) { 1231 if ( $jtype eq 'groupchat' ) { 1232 my $nick = $props{nick} = $from->GetResource(); 1233 my $room = $props{room} = $from->GetJID('base'); 1234 $completion_jids{$room} = 1; 1235 1236 $props{sender} = $nick || $room; 1237 $props{recipient} = $room; 1238 1239 if ( $props{subject} && !$props{body} ) { 1240 $props{body} = 1241 '[' . $nick . " has set the topic to: " . $props{subject} . "]"; 1242 } 1243 } 1244 elsif ( $jtype eq 'headline' ) { 1245 ; 1246 } 1247 elsif ( $jtype eq 'error' ) { 1248 $props{body} = "Error " 1249 . $props{error_code} 1250 . " sending to " 1251 . $props{from} . "\n" 1252 . $props{error}; 1253 } 1254 else { # chat, or normal (default) 1232 1255 $props{private} = 1; 1233 1256 … … 1256 1279 $completion_jids{ $props{recipient} } = 1; 1257 1280 } 1258 }1259 elsif ( $jtype eq 'groupchat' ) {1260 my $nick = $props{nick} = $from->GetResource();1261 my $room = $props{room} = $from->GetJID('base');1262 $completion_jids{$room} = 1;1263 1264 $props{sender} = $nick || $room;1265 $props{recipient} = $room;1266 1267 if ( $props{subject} && !$props{body} ) {1268 $props{body} =1269 '[' . $nick . " has set the topic to: " . $props{subject} . "]";1270 }1271 }1272 elsif ( $jtype eq 'normal' ) {1273 $props{private} = 1;1274 }1275 elsif ( $jtype eq 'headline' ) {1276 }1277 elsif ( $jtype eq 'error' ) {1278 $props{body} = "Error "1279 . $props{error_code}1280 . " sending to "1281 . $props{from} . "\n"1282 . $props{error};1283 1281 } 1284 1282
Note: See TracChangeset
for help on using the changeset viewer.