diff plugins/error.c @ 398:59d97cd251ff

[gaim-migrate @ 408] this better work committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 12 Jun 2000 13:59:03 +0000
parents b1d5c6ab7b0d
children ece2d1543b20
line wrap: on
line diff
--- a/plugins/error.c	Mon Jun 12 13:56:58 2000 +0000
+++ b/plugins/error.c	Mon Jun 12 13:59:03 2000 +0000
@@ -11,6 +11,7 @@
 
 	srand(time(NULL));
 	error = rand() % 3;
+	error -= 2;
 	/* there's a 1 in 3 chance there *won't* be an error :) */
 	return error;
 }
@@ -25,10 +26,10 @@
 	 * we just have to deal with what the error was (as defined by us)
 	 * and do any other clean-up stuff we need to do. */
 	switch (error) {
-	case 0:
+	case -1:
 		do_error_dialog("I'm calling the error myself", "MY BAD");
 		return NULL;
-	case 2:
+	case -2:
 		return "Internal plugin error: exiting.";
 	}
 	/* we should never get here */