Commit 2edf7464 authored by Justin Mitchell's avatar Justin Mitchell
Browse files

Give a name to the plain gag and stop it being an error. fixes #10

parent e820321b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ char *apply_bork(char *text, const gag_pattern_t *list, int caps);
 ****/

GagInfo gaglist[]={
{"","Gag", "Ungag",
{"gag","Gag", "Ungag",
   "You have just been gagged!",
   "You have been ungagged. You can now talk normally",
   gag_normal},
+2 −2
Original line number Diff line number Diff line
@@ -165,8 +165,8 @@ void accept_action(ipc_connection_t *conn, ipc_message_t *msg)
		const char *gagtype = json_getstring(j, "gag");

		if (gagtype == NULL) {
			send_error(conn, msg, "Missing gag type");
			return;
			/* the original, and best */
			gagtype = "gag";
		}

		int gtnum = gag_code(gagtype);