]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fix a typo. *sigh*
authorGunnar Beutner <redacted>
Thu, 18 Jul 2013 15:18:23 +0000 (17:18 +0200)
committerGunnar Beutner <redacted>
Thu, 18 Jul 2013 15:18:23 +0000 (17:18 +0200)
--HG--
branch : shroudtrusts

glines/glines.h
glines/glines_buf.c
glines/glines_commands.c

index d91dbff3b82c6dec9bdca834c605dbfa04c12c34..35ed0d09602125f33b2a3ce8bb45f285e32e479f 100644 (file)
@@ -82,7 +82,7 @@ typedef struct glinebuf {
   int id;
   sstring *comment;
   time_t commit;
-  time_t ammend;
+  time_t amend;
 
   gline *glines;
 
index e28e6659f6230d7dfe7f4c86be1aa81755756754..06e93e4733267732a86877affc3e7e4293a495cc 100644 (file)
@@ -16,7 +16,7 @@ void glinebufinit(glinebuf *gbuf, int id) {
   gbuf->id = id;
   gbuf->comment = NULL;
   gbuf->commit = 0;
-  gbuf->ammend = 0;
+  gbuf->amend = 0;
   gbuf->glines = NULL;
   gbuf->hitsvalid = 0;
   gbuf->userhits = 0;
@@ -227,8 +227,8 @@ void glinebufspew(glinebuf *gbuf, nick *spewto) {
     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);
   }
 
@@ -312,7 +312,7 @@ int glinebufcommit(glinebuf *gbuf, int propagate) {
 
         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;
@@ -331,7 +331,7 @@ int glinebufcommit(glinebuf *gbuf, int propagate) {
       gbl->userhits = 0;
       gbl->channelhits = 0;
       gbl->commit = gbuf->commit;
-      gbl->ammend = 0;
+      gbl->amend = 0;
 
       array_init(&gbl->hits, sizeof(sstring *));
     }
index 4eb38c76624d627fb7b0bf628aa273eef3e1ce0d..e1320f63a924b99dfc05f0ff513525eb49f5dc14 100644 (file)
@@ -867,8 +867,8 @@ static int glines_cmdglinelog(void *source, int cargc, char **cargv) {
       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)");
     }