diff options
| author | Luke Bratch <luke@bratch.co.uk> | 2019-06-11 22:54:50 +0100 | 
|---|---|---|
| committer | Luke Bratch <luke@bratch.co.uk> | 2019-06-11 22:54:50 +0100 | 
| commit | 511e258e901e5248e1706609ba1099507fd750ae (patch) | |
| tree | 4c7ee92fbe3634e7c78579657a023948a1a6bbae /message.c | |
| parent | 9db9fb396aaf601bd00f2b62face2693307a0e16 (diff) | |
Implement configurable auto replay modes.  So far there is "none", "time" (auto replay the last X seconds), and "lastspoke" (auto replay everything since you last spoke).
Diffstat (limited to 'message.c')
| -rw-r--r-- | message.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -126,7 +126,7 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int          for (int i = 0; i < MAXCLIENTS; i++) {            if (clients[i].fd) {              char alertmsg[MAXDATASIZE]; -            if (!doreplay(clients[i].fd, settings->replayseconds, clients, settings, ircdstate, channels)) { +            if (!doautoreplay(clients[i].fd, clients, settings, ircdstate, channels)) {                snprintf(alertmsg, MAXDATASIZE, "NOTICE %s :Unable to read replay log file!", ircdstate->ircnick);                sendtoclient(sourcefd, alertmsg, clients, settings, 0);              } @@ -947,7 +947,7 @@ int processclientmessage(SSL *server_ssl, char *str, struct client *clients, int      clients[arrindex(clients, sourcefd)].registered = 1;      // Catch the client up with the default number of seconds of replay -    if (!doreplay(sourcefd, settings->replayseconds, clients, settings, ircdstate, channels)) { +    if (!doautoreplay(sourcefd, clients, settings, ircdstate, channels)) {        snprintf(outgoingmsg, MAXDATASIZE, "NOTICE %s :Unable to read replay log file!", ircdstate->ircnick);        sendtoclient(sourcefd, outgoingmsg, clients, settings, 0);      } | 
