[mw-devel] [Git][arthur/mw][master] 3 commits: Added Unreturnable gag

Dom Rushbrook psycodom at sucs.org
Wed Oct 21 22:33:25 BST 2015


Dom Rushbrook pushed to branch master at Justin Mitchell / mw


Commits:
e58ece1b by Laurence Sebastian Bowes at 2015-10-21T21:07:16Z
Added Unreturnable gag

- - - - -
dfde1636 by Laurence Sebastian Bowes at 2015-10-21T21:39:07Z
Make the unreturnable gag a bit more interesting..

- - - - -
56a2f88a by Dom Rushbrook at 2015-10-21T22:33:14Z
Merge branch 'master' into 'master'

Unreturnable gag

See merge request !3

- - - - -


3 changed files:

- src/gags.c
- src/gagtable.c
- src/gagtable.h


Changes:

=====================================
src/gags.c
=====================================
--- a/src/gags.c
+++ b/src/gags.c
@@ -39,6 +39,7 @@ void gag_nosport(char *text);
 void gag_ack(char *text);
 void gag_hazelesque(char *text);
 void gag_pklong(char *text);
+void gag_unreturnable(char *text);
 char *apply_bork(char *text, const gag_pattern_t *list, int caps);
 
 /****
@@ -146,6 +147,10 @@ GagInfo gaglist[]={
 	"You have just been made to love Disney",
 	"Your love of Disney has faded",
 	gag_pklong},
+{"unreturnable","unreturnable","De-unreturnable",
+    "You have just been made to love node.js and all things hipster...",
+    "Your affinity for javascript slowly fades away and you begin to make rational language choices again...",
+	gag_unreturnable},
 {NULL, NULL, NULL, NULL, NULL, NULL},
 };
 
@@ -626,6 +631,11 @@ void gag_nosport(char *text)
 	snprintf(text, MAXTEXTLENGTH-1, "%s", apply_bork(text, nosport, 0));
 }
 
+void gag_unreturnable(char *text)
+{
+	snprintf(text, MAXTEXTLENGTH-1, "%s", apply_bork(text, unreturnable, 0));
+}
+
 #define MAX_WORDS 30
 
 /* Mars Attacks! */
@@ -751,6 +761,7 @@ void gag_pklong(char *text)
 	gag_wordrep(text,"disney ");
 }
 
+
 /**
  * old style lookup table gag filters
  **/


=====================================
src/gagtable.c
=====================================
--- a/src/gagtable.c
+++ b/src/gagtable.c
@@ -1293,3 +1293,19 @@ const gag_pattern_t nosport[]={
 
 
 {NULL,NULL}};
+
+const gag_pattern_t unreturnable[]={
+{ "javascript",	"node.js" },
+{ "C++",	"node.js" },
+{ "c++",	"node.js" },
+{ "fortran",	"node.js" },
+{ "pascal",	"node.js" },
+{ "python",	"node.js" },
+{ "java",	"node.js" },
+{ "linux",	"nodeOS" },
+{ "windows",	"nodeOS" },
+{ "debian",	"nodeOS" },
+{ "fedora",	"nodeOS" },
+{ "silver",	"our node.js server" },
+
+{ NULL, NULL} };


=====================================
src/gagtable.h
=====================================
--- a/src/gagtable.h
+++ b/src/gagtable.h
@@ -16,5 +16,5 @@ extern const gag_pattern_t warez[];
 extern const gag_pattern_t french[];
 extern const gag_pattern_t babelfish[];
 extern const gag_pattern_t nosport[];
-
+extern const gag_pattern_t unreturnable[];
 #endif /* GAGTABLE_H */



View it on GitLab: https://projects.sucs.org/arthur/mw/compare/b8df4668dd3d8a6965dbf6e729b3e4bc79df592c...56a2f88adda58b7d7e9718c4017f423401379bff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20151021/c619dded/attachment.html>


More information about the mw-devel mailing list