about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-06-23 21:21:14 +0100
committerJames Booth <boothj5@gmail.com>2013-06-23 21:21:14 +0100
commit7d0a31184a4bcf3a3445a8a860e2fdc2509a5f1c (patch)
tree098f7c3257a97604f8cb351c38c14f52a36c9afa
parentb52dcfe557fe18940a7d7b7f26438614dc1ccd3a (diff)
downloadprofani-tty-7d0a31184a4bcf3a3445a8a860e2fdc2509a5f1c.tar.gz
Renamed _cmd_set commands
-rw-r--r--src/command/command.c114
1 files changed, 57 insertions, 57 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 002aa998..a5a3cd11 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -107,25 +107,25 @@ static gboolean _cmd_invites(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_decline(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_rooms(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_disco(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_beep(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_notify(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_log(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_priority(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_reconnect(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_intype(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_flash(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_splash(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_chlog(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_grlog(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_history(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_states(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_outtype(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_gone(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_autoping(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_titlebar(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_autoaway(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_mouse(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_set_statuses(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_beep(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_notify(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_log(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_priority(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_reconnect(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_intype(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_flash(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_splash(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_chlog(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_grlog(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_history(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_states(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_outtype(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_gone(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_autoping(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_titlebar(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_autoaway(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_mouse(gchar **args, struct cmd_help_t help);
+static gboolean _cmd_statuses(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_vercheck(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_away(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_online(gchar **args, struct cmd_help_t help);
@@ -502,7 +502,7 @@ static struct cmd_t main_commands[] =
 static struct cmd_t setting_commands[] =
 {
     { "/beep",
-        _cmd_set_beep, parse_args, 1, 1,
+        _cmd_beep, parse_args, 1, 1,
         { "/beep on|off", "Terminal beep on new messages.",
         { "/beep on|off",
           "------------",
@@ -512,7 +512,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/notify",
-        _cmd_set_notify, parse_args, 2, 2,
+        _cmd_notify, parse_args, 2, 2,
         { "/notify type value", "Control various desktop noficiations.",
         { "/notify type value",
           "------------------",
@@ -538,7 +538,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/flash",
-        _cmd_set_flash, parse_args, 1, 1,
+        _cmd_flash, parse_args, 1, 1,
         { "/flash on|off", "Terminal flash on new messages.",
         { "/flash on|off",
           "-------------",
@@ -548,7 +548,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/intype",
-        _cmd_set_intype, parse_args, 1, 1,
+        _cmd_intype, parse_args, 1, 1,
         { "/intype on|off", "Show when contact is typing.",
         { "/intype on|off",
           "--------------",
@@ -556,7 +556,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/splash",
-        _cmd_set_splash, parse_args, 1, 1,
+        _cmd_splash, parse_args, 1, 1,
         { "/splash on|off", "Splash logo on startup and /about command.",
         { "/splash on|off",
           "--------------",
@@ -573,7 +573,7 @@ static struct cmd_t setting_commands[] =
           NULL  } } },
 
     { "/titlebar",
-        _cmd_set_titlebar, parse_args, 2, 2,
+        _cmd_titlebar, parse_args, 2, 2,
         { "/titlebar property on|off", "Show various properties in the window title bar.",
         { "/titlebar property on|off",
           "-------------------------",
@@ -582,7 +582,7 @@ static struct cmd_t setting_commands[] =
           NULL  } } },
 
     { "/mouse",
-        _cmd_set_mouse, parse_args, 1, 1,
+        _cmd_mouse, parse_args, 1, 1,
         { "/mouse on|off", "Use profanity mouse handling.",
         { "/mouse on|off",
           "-------------",
@@ -595,7 +595,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/chlog",
-        _cmd_set_chlog, parse_args, 1, 1,
+        _cmd_chlog, parse_args, 1, 1,
         { "/chlog on|off", "Chat logging to file",
         { "/chlog on|off",
           "-------------",
@@ -606,7 +606,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/grlog",
-        _cmd_set_grlog, parse_args, 1, 1,
+        _cmd_grlog, parse_args, 1, 1,
         { "/grlog on|off", "Chat logging of chat rooms to file",
         { "/grlog on|off",
           "-------------",
@@ -615,7 +615,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/states",
-        _cmd_set_states, parse_args, 1, 1,
+        _cmd_states, parse_args, 1, 1,
         { "/states on|off", "Send chat states during a chat session.",
         { "/states on|off",
           "--------------",
@@ -624,7 +624,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/outtype",
-        _cmd_set_outtype, parse_args, 1, 1,
+        _cmd_outtype, parse_args, 1, 1,
         { "/outtype on|off", "Send typing notification to recipient.",
         { "/outtype on|off",
           "---------------",
@@ -633,7 +633,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/gone",
-        _cmd_set_gone, parse_args, 1, 1,
+        _cmd_gone, parse_args, 1, 1,
         { "/gone minutes", "Send 'gone' state to recipient after a period.",
         { "/gone minutes",
           "-------------",
@@ -644,7 +644,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/history",
-        _cmd_set_history, parse_args, 1, 1,
+        _cmd_history, parse_args, 1, 1,
         { "/history on|off", "Chat history in message windows.",
         { "/history on|off",
           "---------------",
@@ -653,7 +653,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/log",
-        _cmd_set_log, parse_args, 2, 2,
+        _cmd_log, parse_args, 2, 2,
         { "/log maxsize value", "Manage system logging settings.",
         { "/log maxsize value",
           "------------------",
@@ -662,7 +662,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/reconnect",
-        _cmd_set_reconnect, parse_args, 1, 1,
+        _cmd_reconnect, parse_args, 1, 1,
         { "/reconnect seconds", "Set reconnect interval.",
         { "/reconnect seconds",
           "------------------",
@@ -671,7 +671,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/autoping",
-        _cmd_set_autoping, parse_args, 1, 1,
+        _cmd_autoping, parse_args, 1, 1,
         { "/autoping seconds", "Server ping interval.",
         { "/autoping seconds",
           "-----------------",
@@ -680,7 +680,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/autoaway",
-        _cmd_set_autoaway, parse_args_with_freetext, 2, 2,
+        _cmd_autoaway, parse_args_with_freetext, 2, 2,
         { "/autoaway setting value", "Set auto idle/away properties.",
         { "/autoaway setting value",
           "-----------------------",
@@ -701,7 +701,7 @@ static struct cmd_t setting_commands[] =
           NULL } } },
 
     { "/priority",
-        _cmd_set_priority, parse_args, 1, 1,
+        _cmd_priority, parse_args, 1, 1,
         { "/priority value", "Set priority for the current account.",
         { "/priority value",
           "---------------",
@@ -776,7 +776,7 @@ static struct cmd_t setting_commands[] =
 
 
     { "/statuses",
-        _cmd_set_statuses, parse_args, 1, 1,
+        _cmd_statuses, parse_args, 1, 1,
         { "/statuses on|off", "Set notifications for status messages.",
         { "/statuses on|off",
           "----------------",
@@ -2975,13 +2975,13 @@ _cmd_leave(gchar **args, struct cmd_help_t help)
 }
 
 static gboolean
-_cmd_set_beep(gchar **args, struct cmd_help_t help)
+_cmd_beep(gchar **args, struct cmd_help_t help)
 {
     return _cmd_set_boolean_preference(args[0], help, "Sound", PREF_BEEP);
 }
 
 static gboolean
-_cmd_set_states(gchar **args, struct cmd_help_t help)
+_cmd_states(gchar **args, struct cmd_help_t help)
 {
     gboolean result = _cmd_set_boolean_preference(args[0], help, "Sending chat states",
         PREF_STATES);
@@ -2996,7 +2996,7 @@ _cmd_set_states(gchar **args, struct cmd_help_t help)
 }
 
 static gboolean
-_cmd_set_titlebar(gchar **args, struct cmd_help_t help)
+_cmd_titlebar(gchar **args, struct cmd_help_t help)
 {
     if (strcmp(args[0], "version") != 0) {
         cons_show("Usage: %s", help.usage);
@@ -3008,7 +3008,7 @@ _cmd_set_titlebar(gchar **args, struct cmd_help_t help)
 }
 
 static gboolean
-_cmd_set_outtype(gchar **args, struct cmd_help_t help)
+_cmd_outtype(gchar **args, struct cmd_help_t help)
 {
     gboolean result = _cmd_set_boolean_preference(args[0], help,
         "Sending typing notifications", PREF_OUTTYPE);
@@ -3022,7 +3022,7 @@ _cmd_set_outtype(gchar **args, struct cmd_help_t help)
 }
 
 static gboolean
-_cmd_set_gone(gchar **args, struct cmd_help_t help)
+_cmd_gone(gchar **args, struct cmd_help_t help)
 {
     char *value = args[0];
 
@@ -3046,7 +3046,7 @@ _cmd_set_gone(gchar **args, struct cmd_help_t help)
 
 
 static gboolean
-_cmd_set_notify(gchar **args, struct cmd_help_t help)
+_cmd_notify(gchar **args, struct cmd_help_t help)
 {
     char *kind = args[0];
     char *value = args[1];
@@ -3125,7 +3125,7 @@ _cmd_set_notify(gchar **args, struct cmd_help_t help)
 }
 
 static gboolean
-_cmd_set_log(gchar **args, struct cmd_help_t help)
+_cmd_log(gchar **args, struct cmd_help_t help)
 {
     char *subcmd = args[0];
     char *value = args[1];
@@ -3146,7 +3146,7 @@ _cmd_set_log(gchar **args, struct cmd_help_t help)
 }
 
 static gboolean
-_cmd_set_reconnect(gchar **args, struct cmd_help_t help)
+_cmd_reconnect(gchar **args, struct cmd_help_t help)
 {
     char *value = args[0];
     int intval;
@@ -3166,7 +3166,7 @@ _cmd_set_reconnect(gchar **args, struct cmd_help_t help)
 }
 
 static gboolean
-_cmd_set_autoping(gchar **args, struct cmd_help_t help)
+_cmd_autoping(gchar **args, struct cmd_help_t help)
 {
     char *value = args[0];
     int intval;
@@ -3187,7 +3187,7 @@ _cmd_set_autoping(gchar **args, struct cmd_help_t help)
 }
 
 static gboolean
-_cmd_set_autoaway(gchar **args, struct cmd_help_t help)
+_cmd_autoaway(gchar **args, struct cmd_help_t help)
 {
     char *setting = args[0];
     char *value = args[1];
@@ -3241,7 +3241,7 @@ _cmd_set_autoaway(gchar **args, struct cmd_help_t help)
 }
 
 static gboolean
-_cmd_set_priority(gchar **args, struct cmd_help_t help)
+_cmd_priority(gchar **args, struct cmd_help_t help)
 {
     jabber_conn_status_t conn_status = jabber_get_connection_status();
 
@@ -3264,7 +3264,7 @@ _cmd_set_priority(gchar **args, struct cmd_help_t help)
 }
 
 static gboolean
-_cmd_set_statuses(gchar **args, struct cmd_help_t help)
+_cmd_statuses(gchar **args, struct cmd_help_t help)
 {
     return _cmd_set_boolean_preference(args[0], help,
         "Status notifications", PREF_STATUSES);
@@ -3285,28 +3285,28 @@ _cmd_vercheck(gchar **args, struct cmd_help_t help)
 }
 
 static gboolean
-_cmd_set_flash(gchar **args, struct cmd_help_t help)
+_cmd_flash(gchar **args, struct cmd_help_t help)
 {
     return _cmd_set_boolean_preference(args[0], help,
         "Screen flash", PREF_FLASH);
 }
 
 static gboolean
-_cmd_set_intype(gchar **args, struct cmd_help_t help)
+_cmd_intype(gchar **args, struct cmd_help_t help)
 {
     return _cmd_set_boolean_preference(args[0], help,
         "Show contact typing", PREF_INTYPE);
 }
 
 static gboolean
-_cmd_set_splash(gchar **args, struct cmd_help_t help)
+_cmd_splash(gchar **args, struct cmd_help_t help)
 {
     return _cmd_set_boolean_preference(args[0], help,
         "Splash screen", PREF_SPLASH);
 }
 
 static gboolean
-_cmd_set_chlog(gchar **args, struct cmd_help_t help)
+_cmd_chlog(gchar **args, struct cmd_help_t help)
 {
     gboolean result = _cmd_set_boolean_preference(args[0], help,
         "Chat logging", PREF_CHLOG);
@@ -3320,7 +3320,7 @@ _cmd_set_chlog(gchar **args, struct cmd_help_t help)
 }
 
 static gboolean
-_cmd_set_grlog(gchar **args, struct cmd_help_t help)
+_cmd_grlog(gchar **args, struct cmd_help_t help)
 {
     gboolean result = _cmd_set_boolean_preference(args[0], help,
         "Groupchat logging", PREF_GRLOG);
@@ -3329,14 +3329,14 @@ _cmd_set_grlog(gchar **args, struct cmd_help_t help)
 }
 
 static gboolean
-_cmd_set_mouse(gchar **args, struct cmd_help_t help)
+_cmd_mouse(gchar **args, struct cmd_help_t help)
 {
     return _cmd_set_boolean_preference(args[0], help,
         "Mouse handling", PREF_MOUSE);
 }
 
 static gboolean
-_cmd_set_history(gchar **args, struct cmd_help_t help)
+_cmd_history(gchar **args, struct cmd_help_t help)
 {
     gboolean result = _cmd_set_boolean_preference(args[0], help,
         "Chat history", PREF_HISTORY);
'alt'>
39e0782d ^
9d94ac5c ^


2c5b4442 ^
9d94ac5c ^





6e28df66 ^

af2c7d85 ^
b269ac97 ^
57c75644 ^
e45afd5c ^

9d94ac5c ^


ea267e20 ^
8326c8b3 ^



ea267e20 ^
9d94ac5c ^
81020e6d ^
b269ac97 ^
7255ef5e ^
9d94ac5c ^



4c6cfcdc ^
9d94ac5c ^


acd2d230 ^
9d94ac5c ^
7255ef5e ^
bced3d4b ^
48f9f3b3 ^

9d94ac5c ^



26d160ca ^
9d94ac5c ^







99c0b3f2 ^
9d94ac5c ^
94bd9dbd ^
9d94ac5c ^
aec7afd0 ^
714faeb2 ^
9d94ac5c ^

0b78a9a5 ^
9d94ac5c ^

965f048b ^
9d94ac5c ^
bced3d4b ^
070d2ced ^
9d94ac5c ^








4c6cfcdc ^
9d94ac5c ^
























e8a450bc ^
0c024607 ^
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251