Files
sudo/insults.h
1994-05-25 01:25:40 +00:00

71 lines
2.0 KiB
C

/*
* CU sudo version 1.3.1
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 1, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Please send bugs, changes, problems to sudo-bugs.cs.colorado.edu
*/
#ifdef USE_INSULTS
#ifndef _SUDO_INSULTS_H
#define _SUDO_INSULTS_H
/*
* To add insult to injury, just add to the following strings and
* adjust NOFINSULTS accordingly. This code taken from the original
* sudo(8). HAL insults from 2001.
*/
#ifdef HAL
char *insults[] = {
"Just what do you think you're doing Dave?",
"It can only be attribuited to human error.",
"That's something I cannot allow to happen.",
"My mind is going. I can feel it.",
"Sorry about this, I know it's a bit silly.",
"Take a stress pill and think things over.",
"This mission is too important for me to allow you to jeopardize it.",
"I feel much better now."
};
#define NOFINSULTS 8 /* number of insults */
#else /* HAL */
char *insults[] = {
"Wrong! You cheating scum!",
"No soap, honkie-lips.",
"Where did you learn to type?",
"Are you on drugs?",
"My pet ferret can type better than you!",
"You type like i drive.",
"Do you think like you type?",
"Your mind just hasn't been the same since the electro-shock, has it?"
};
#define NOFINSULTS 8 /* number of insults */
#endif /* HAL */
/*
* return a random insult.
*/
#define INSULT (insults[time(NULL) % NOFINSULTS])
#endif /* _SUDO_INSULTS_H */
#endif /* USE_INSULTS */