~cody.smith/ubuntu/precise/freeciv/lp.202327

« back to all changes in this revision

Viewing changes to server/notify.c

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams
  • Date: 2010-12-16 20:44:14 UTC
  • mfrom: (1.2.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20101216204414-gcr7omy0o66x5nzo
Tags: 2.2.4-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
457
457
  }
458
458
  RETURN_VAL_IF_FAIL(NULL != packet, NULL);
459
459
 
 
460
  if (packet->event == E_MESSAGE_WALL) {
 
461
    /* No popups at save game load. */
 
462
    return NULL;
 
463
  }
 
464
 
460
465
  if (!game.server.event_cache.chat && packet->event == E_CHAT_MSG) {
461
466
    /* chat messages should _not_ be saved */
462
467
    return NULL;
518
523
}
519
524
 
520
525
/**************************************************************************
 
526
  Remove all events from the cache.
 
527
**************************************************************************/
 
528
void event_cache_clear(void)
 
529
{
 
530
  event_cache_iterate(pdata) {
 
531
    event_cache_data_destroy(pdata);
 
532
  } event_cache_iterate_end;
 
533
}
 
534
 
 
535
/**************************************************************************
521
536
  Remove the old events from the cache.
522
537
**************************************************************************/
523
538
void event_cache_remove_old(void)