gbuf->id = id;
gbuf->comment = NULL;
gbuf->commit = 0;
- gbuf->ammend = 0;
+ gbuf->amend = 0;
gbuf->glines = NULL;
gbuf->hitsvalid = 0;
gbuf->userhits = 0;
controlreply(spewto, "Committed at: %s", timebuf);
}
- if (gbuf->ammend) {
- strftime(timebuf, sizeof(timebuf), "%d/%m/%y %H:%M:%S", localtime(&gbuf->ammend));
+ if (gbuf->amend) {
+ strftime(timebuf, sizeof(timebuf), "%d/%m/%y %H:%M:%S", localtime(&gbuf->amend));
controlreply(spewto, "Ammended at: %s", timebuf);
}
if (glinebuflog[i]->id == gbuf->id) {
gbl = glinebuflog[i];
- gbl->ammend = gbuf->commit;
+ gbl->amend = gbuf->commit;
/* We're going to re-insert this glinebuf, so remove it for now */
glinebuflog[i] = NULL;
gbl->userhits = 0;
gbl->channelhits = 0;
gbl->commit = gbuf->commit;
- gbl->ammend = 0;
+ gbl->amend = 0;
array_init(&gbl->hits, sizeof(sstring *));
}
for (gl = gbl->glines; gl; gl = gl->next)
count++;
- strftime(timebuf, sizeof(timebuf), "%d/%m/%y %H:%M:%S", localtime((gbl->ammend) ? &gbl->ammend : &gbl->commit));
- strncat(timebuf, (gbl->ammend) ? "*" : " ", sizeof(timebuf));
+ strftime(timebuf, sizeof(timebuf), "%d/%m/%y %H:%M:%S", localtime((gbl->amend) ? &gbl->amend : &gbl->commit));
+ strncat(timebuf, (gbl->amend) ? "*" : " ", sizeof(timebuf));
controlreply(sender, "%-20s %-10d %-10d %-15d %-15d %s", timebuf, gbl->id, count, gbl->userhits, gbl->channelhits, gbl->comment ? gbl->comment->content : "(no comment)");
}