Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 66 lines (60 sloc) 1.026 kb
8c8b00d Logging
ec429 authored
1 /*
2 quIRC - simple terminal-based IRC client
3 Copyright (C) 2010-12 Edward Cree
4
5 See quirc.c for license information
6 types.c: enumerator names
7 */
8
9 #include "types.h"
10
11 // TODO: The _name functions ought to be generated, really (SPOT and all that)
12
13 const char *mtype_name(mtype m)
14 {
15 switch(m)
16 {
17 case MSG:
18 return("MSG");
19 case NOTICE:
20 return("NOTICE");
21 case PREFORMAT:
22 return("PREFORMAT");
23 case ACT:
24 return("ACT");
25 case JOIN:
26 return("JOIN");
27 case PART:
28 return("PART");
29 case QUIT:
30 return("QUIT");
31 case QUIT_PREFORMAT:
32 return("QUIT_PREFORMAT");
33 case NICK:
34 return("NICK");
35 case MODE:
36 return("MODE");
37 case STA:
38 return("STA");
39 case ERR:
40 return("ERR");
41 case UNK:
42 return("UNK");
43 case UNK_NOTICE:
44 return("UNK_NOTICE");
45 case UNN:
46 return("UNN");
47 default:
48 return("?");
49 }
50 }
51
52 const char *prio_name(prio p)
53 {
54 switch(p)
55 {
56 case QUIET:
57 return("QUIET");
58 case NORMAL:
59 return("NORMAL");
60 case DEBUG:
61 return("DEBUG");
62 default:
63 return("?");
64 }
65 }
Something went wrong with that request. Please try again.