]> git.armaanb.net Git - opendoas.git/blob - insults.c
Handle empty argv
[opendoas.git] / insults.c
1 #include <stdlib.h>
2 #include <time.h>
3
4 char *insults[] = {
5     /*
6      * These insults were mostly stolen from the Sudo project. The copyright
7      * header on those files states:
8      *     ISC license
9      *     Copyright (c) 1996-2018 Todd C. Miller <Todd.Miller@sudo.ws>
10      */
11
12     "Just what do you think you're doing Dave?",
13     "It can only be attributed to human error.",
14     "That's something I cannot allow to happen.",
15     "My mind is going. I can feel it.",
16     "Sorry about this, I know it's a bit silly.",
17     "Take a stress pill and think things over.",
18     "This mission is too important for me to allow you to jeopardize it.",
19     "I feel much better now.",
20     "Wrong!  You cheating scum!",
21     "And you call yourself a Rocket Scientist!",
22     "No soap, honkie-lips.",
23     "Where did you learn to type?",
24     "Are you on drugs?",
25     "My pet ferret can type better than you!",
26     "You type like i drive.",
27     "Do you think like you type?",
28     "Your mind just hasn't been the same since the electro-shock, has it?",
29     "Maybe if you used more than just two fingers...",
30     "BOB says:  You seem to have forgotten your passwd, enter another!",
31     "stty: unknown mode: doofus",
32     "I can't hear you -- I'm using the scrambler.",
33     "The more you drive -- the dumber you get.",
34     "Listen, broccoli brains, I don't have time to listen to this trash.",
35     "I've seen penguins that can type better than that.",
36     "Have you considered trying to match wits with a rutabaga?",
37     "You speak an infinite deal of nothing",
38     "You silly, twisted boy you.",
39     "He has fallen in the water!",
40     "We'll all be murdered in our beds!",
41     "You can't come in. Our tiger has got flu",
42     "I don't wish to know that.",
43     "What, what, what, what, what, what, what, what, what, what?",
44     "You can't get the wood, you know.",
45     "You'll starve!",
46     "... and it used to be so popular...",
47     "Pauses for audience applause, not a sausage",
48     "Hold it up to the light --- not a brain in sight!",
49     "Have a gorilla...",
50     "There must be cure for it!",
51     "There's a lot of it about, you know.",
52     "You do that again and see what happens...",
53     "Ying Tong Iddle I Po",
54     "Harm can come to a young lad like that!",
55     "And with that remarks folks, the case of the Crown vs yourself was proven.",
56     "Speak English you fool --- there are no subtitles in this scene.",
57     "You gotta go owwwww!",
58     "I have been called worse.",
59     "It's only your word against mine.",
60     "I think ... err ... I think ... I think I'll go home",
61     "That is no basis for supreme executive power!",
62     "You empty-headed animal food trough wiper!",
63     "I fart in your general direction!",
64     "Your mother was a hamster and your father smelt of elderberries!",
65     "You must cut down the mightiest tree in the forest... with... a herring!",
66     "I wave my private parts at your aunties!",
67     "He's not the Messiah, he's a very naughty boy!",
68     "I wish to make a complaint.",
69     "When you're walking home tonight, and some homicidal maniac comes after you with a bunch of loganberries, don't come crying to me!",
70     "This man, he doesn't know when he's beaten! He doesn't know when he's winning, either. He has no... sort of... sensory apparatus...",
71     "There's nothing wrong with you that an expensive operation can't prolong.",
72     "I'm very sorry, but I'm not allowed to argue unless you've paid.",
73     "You are being naughty this year.",
74     "A new shipment of coal is on it's way.",
75     "Santa is not amused",
76 };
77
78 const char *
79 getinsult(void)
80 {
81         srand(time(NULL));
82         return (insults[rand() % (sizeof(insults) / sizeof(insults[0]))]);
83 }