File: bofh.pike

package info (click to toggle)
roxen 1.2beta2-2
  • links: PTS
  • area: contrib
  • in suites: hamm
  • size: 16,948 kB
  • ctags: 8,589
  • sloc: ansic: 89,632; asm: 8,431; sh: 2,915; makefile: 1,787; cpp: 377
file content (38 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
string cvs_version = "$Id: bofh.pike,v 1.2 1996/12/01 19:18:47 per Exp $";
#include <module.h>
inherit "module";

string *excuses = ({
"clock speed ",
"solar flares ",
"electromagnetic radiation from satellite debris ",
"static from nylon underwear ",
"static from plastic slide rules ",
"global warming ",
"poor power conditioning ",
"static buildup ",
"doppler effect ",
"hardware stress fractures "});

array register_module()
{
  return ({ MODULE_PARSER,
            "BOFH  Module",
            "Adds an extra tag, 'bofh'.", ({}), 1
            });
}


string bofh_excuse(string tag, mapping m)
{
  return excuses[random(sizeof(excuses))];
}

string info() { return bofh_excuse("", ([])); }

mapping query_tag_callers() { return (["bofh":bofh_excuse,]); }

mapping query_container_callers() { return ([]); }