Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / m_gline.c
index 18c1855ae6c72f99dd9c7b4adcd0365b0fc46aec..13fbd9052b20d521d6891dd37a8b11ea7793b029 100644 (file)
@@ -170,13 +170,13 @@ ms_gline(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
   if ((action == GLINE_LOCAL_ACTIVATE || action == GLINE_LOCAL_DEACTIVATE) &&
       !IsMe(acptr)) {
     Debug((DEBUG_DEBUG, "I am forwarding a local change to a global gline "
-          "to a remote server; target %s, mask %s, operforce %s, action %s",
+          "to a remote server; target %s, mask %s, operforce %s, action %c",
           target, mask, flags & GLINE_OPERFORCE ? "YES" : "NO",
-          action == GLINE_LOCAL_ACTIVATE ? ">" : "<"));
+          action == GLINE_LOCAL_ACTIVATE ? '>' : '<'));
 
     sendcmdto_one(sptr, CMD_GLINE, acptr, "%C %s%c%s", acptr,
                  flags & GLINE_OPERFORCE ? "!" : "",
-                 action == GLINE_LOCAL_ACTIVATE ? ">" : "<", mask);
+                 action == GLINE_LOCAL_ACTIVATE ? '>' : '<', mask);
 
     return 0; /* all done */
   }
@@ -306,6 +306,9 @@ ms_gline(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
     }
   }
 
+  if (!lastmod) /* must have a lastmod parameter by now */
+    return need_more_params(sptr, "GLINE");
+
   Debug((DEBUG_DEBUG, "I have a global G-line I am acting upon now; "
         "target %s, mask %s, operforce %s, action %s, expire %Tu, "
         "lastmod %Tu, lifetime %Tu, reason: %s; gline %s!  (fields "
@@ -467,13 +470,13 @@ mo_gline(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
       return send_reply(sptr, ERR_NOPRIVILEGES);
 
     Debug((DEBUG_DEBUG, "I am forwarding a local change to a global gline "
-          "to a remote server; target %s, mask %s, operforce %s, action %s",
+          "to a remote server; target %s, mask %s, operforce %s, action %c",
           cli_name(acptr), mask, flags & GLINE_OPERFORCE ? "YES" : "NO",
-          action == GLINE_LOCAL_ACTIVATE ? ">" : "<"));
+          action == GLINE_LOCAL_ACTIVATE ? '>' : '<'));
 
     sendcmdto_one(sptr, CMD_GLINE, acptr, "%C %s%c%s", acptr,
                  flags & GLINE_OPERFORCE ? "!" : "",
-                 action == GLINE_LOCAL_ACTIVATE ? ">" : "<", mask);
+                 action == GLINE_LOCAL_ACTIVATE ? '>' : '<', mask);
 
     return 0; /* all done */
   }