]> jfr.im git - irc/quakenet/newserv.git/blob - chanserv/database/chanservdb_messages.c
Added new USERS command - shows channel users with account names and Q flags.
[irc/quakenet/newserv.git] / chanserv / database / chanservdb_messages.c
1 #include "../chanserv.h"
2
3 cslang *cslanguages[MAXLANG];
4 unsigned int cslangcount;
5
6 sstring *csmessages[MAXLANG][MAXMESSAGES];
7
8 char *defaultmessages[MAXMESSAGES] = {
9 /* 0 */ "Channel %s is protected by %s.",
10 /* 1 */ "Unknown command %s. Type SHOWCOMMANDS for a list of available commands.",
11 /* 2 */ "To prevent sensitive information being accidentally send to malicious users\non other networks, when using the %s command, you must use\n/msg %s@%s.",
12 /* 3 */ "%s is only available to authed users. Try AUTH to authenticate with your\naccount, or HELLO to create an account.",
13 /* 4 */ "%s is not available once you have authed.",
14 /* 5 */ "The following commands are available to you.\nFor more information on a specific command, type HELP <command>:",
15 /* 6 */ "End of list.",
16 /* 7 */ "Done.",
17 /* 8 */ "You didn't provide enough parameters for %s.",
18 /* 9 */ "Channel %s is unknown or suspended.",
19 /* 10 */ "You do not have sufficient access on %s to use %s.",
20 /* 11 */ "Current channel flags for %s: %s",
21 /* 12 */ "Current forced modes on %s: %s",
22 /* 13 */ "You do not have sufficient privileges to use %s.",
23 /* 14 */ "Can't find user %s.",
24 /* 15 */ "User %s is not authed.",
25 /* 16 */ "Known users on %s:",
26 /* 17 */ "Username Flags",
27 /* 18 */ "Username Flags Last join Last changed ",
28 /* 19 */ "No known users found on %s.",
29 /* 20 */ "Flags for %s on %s: %s",
30 /* 21 */ "User %s is not known on %s.",
31 /* 22 */ "Invalid or disallowed flag specified.",
32 /* 23 */ "%s is authed as %s.",
33 /* 24 */ "Network Staff : Helper",
34 /* 25 */ "Network Staff : IRC Operator",
35 /* 26 */ "Network Staff : IRC Administrator",
36 /* 27 */ "Network Staff : Developer",
37 /* 28 */ "%s is known on the following channels:",
38 /* 29 */ "Channel Flags",
39 /* 30 */ "%s is not known on any channels.",
40 /* 31 */ "Current autolimit setting on %s: %d",
41 /* 32 */ "Bans on %s will be removed after: %s",
42 /* 33 */ "Bans on %s will not be automatically removed.",
43 /* 34 */ "%s is not a valid channel name.",
44 /* 35 */ "%s is already registered.",
45 /* 36 */ "User flags for %s: %s",
46 /* 37 */ "Welcome message for %s: %s",
47 /* 38 */ "Default info line: %s",
48 /* 39 */ "Info line on %s: %s",
49 /* 40 */ "%s is a protected helper or oper nick. Please use a different nickname.",
50 /* 41 */ "I created a fakeuser %s to prevent your nick being stolen.",
51 /* 42 */ "Sorry, your nick %s is not protected.",
52 /* 43 */ "%s is authed as %s. Cannot reclaim nick.",
53 /* 44 */ "Username or password incorrect.",
54 /* 45 */ "You are now logged in as %s.",
55 /* 46 */ "User %s created successfully.\nInformation about how to access and use your new account will be sent to your email address, %s.\nIf you do not see an email soon be sure to check your spam folder.",
56 /* 47 */ "A user with that name already exists. If you have said HELLO before, use AUTH to\nlogin, or REQUESTPASSWORD if you have forgotten the password. Otherwise,\nplease change your nick and try again.",
57 /* 48 */ "You're already on %s.",
58 /* 49 */ "You're not on %s.",
59 /* 50 */ "You're already opped on %s.",
60 /* 51 */ "%s is not on %s.",
61 /* 52 */ "%s is already opped on %s.",
62 /* 53 */ "Channel settings prevent %s being opped on %s.",
63 /* 54 */ "You're not opped on %s.",
64 /* 55 */ "You're already voiced on %s.",
65 /* 56 */ "You're not voiced on %s.",
66 /* 57 */ "%s is already voiced on %s.",
67 /* 58 */ "Registered bans on %s:\n"
68 /* .. */ "ID Hostmask Expires Set by Reason",
69 /* 59 */ "No bans on %s.",
70 /* 60 */ "Removed channel ban %s from %s.",
71 /* 61 */ "You need the master flag to remove registered ban %s from %s.",
72 /* 62 */ "Removed registered ban %s from %s.",
73 /* 63 */ "Channel settings prevent %s being voiced on %s.",
74 /* 64 */ "Sorry, no help available for %s.",
75 /* 65 */ "-Information for user %s (using account %s):",
76 /* 66 */ "-Information for account %s:",
77 /* 67 */ "Account users : %s",
78 /* 68 */ "Last auth : %s",
79 /* 69 */ "Last user@host : %s",
80 /* 70 */ "User ID : %d",
81 /* 71 */ "Info : %s",
82 /* 72 */ "Staff comment : %s",
83 /* 73 */ "User flags : %s",
84 /* 74 */ "User created : %s",
85 /* 75 */ "Known on the following channels:\n"
86 /* .. */ "Channel Flags",
87 /* 76 */ "Email address : %s",
88 /* 77 */ "Email last set : %s",
89 /* 78 */ "Staff comment for %s: %s.",
90 /* 79 */ "No staff comment for %s.",
91 /* 80 */ "%s: Your account has been deleted or suspended.",
92 /* 81 */ "Account %s has been deleted.",
93 /* 82 */ "Sorry, no accounts have that email address.",
94 /* 83 */ "Sorry, but you have already requested a password. You will have to wait atleast %.1f hours, before requesting again.",
95 /* 84 */ "Mail queued for delivery",
96 /* 85 */ "Sorry, but passwords do not match",
97 /* 86 */ "Sorry, but new password is to short",
98 /* 87 */ "Ok, password changed",
99 /* 88 */ "Duration too long or invalid: %s",
100 /* 89 */ "Ok, email changed to \"%s\"",
101 /* 90 */ "Sorry, but first and second email addresses don't match",
102 /* 91 */ "%s is not a valid email address",
103 /* 92 */ "Email (%s) too short",
104 /* 93 */ "\"%s\" is not your email address",
105 /* 94 */ "Email (%s) must contain at least one at sign (@)",
106 /* 95 */ "Email (%s) can't end with an at sign (@)",
107 /* 96 */ "Email (%s) contains invalid characters",
108 /* 97 */ "Channel %s is not suspended.",
109 /* 98 */ "Channel %s is already suspended.",
110 /* 99 */ "Channel type: %s",
111 /* 100*/ "%s: unknown channel type",
112 /* 101*/ "Original founder: %s",
113 /* 102*/ "Added by: %s",
114 /* 103*/ "%s is already known on %s.",
115 /* 104*/ "Not removing channel owner %s from %s.",
116 /* 105*/ "Not removing channel master %s from %s.",
117 /* 106*/ "Can't find ban %s on %s.",
118 /* 107*/ "Your language is currently set to: %s.",
119 /* 108*/ "The following languages are currently known:",
120 /* 109*/ "Unknown language code: %s.",
121 /* 110*/ "Language : %s",
122 /* 111*/ "Channel type for %s is: %s",
123 /* 112*/ "Statistics for %s:",
124 /* 113*/ "Date added: %s",
125 /* 114*/ "Since %s: maximum size %d, %d joins (%.1f joins/day).",
126 /* 115*/ "Last active: %s",
127 /* 116*/ "Your Q account is suspended.",
128 /* 117*/ "Reason: %s",
129 /* 118*/ "Expires: %s",
130 /* 119*/ "Too many users AUTH'd to this account.",
131 /* 120*/ "Duration must be between 1d and 1M.",
132 /* 121*/ "Disconnecting %s (authed as %s)",
133 /* 122*/ "User is already suspended.",
134 /* 123*/ "User %s is not suspended.",
135 /* 124*/ "Username: Suspended: Email: Last user@host:",
136 /* 125*/ "Found over %d %s, truncating list.",
137 /* 126*/ "Found %u %s%s.",
138 /* 127*/ "Attention: Your Q account has been suspended. You are being disconnected.",
139 /* 128*/ "Username: Flags: Suspended: Email: Last user@host:",
140 /* 129*/ "Username: Suspend type: Suspended by: Date suspended: Expires: Reason:",
141 /* 130*/ "Channel: Suspended by: Date suspended: Reason:",
142 /* 131*/ "You cannot request ownership of %s as there is a channel %s present.",
143 /* 132*/ "You have been granted ownership of %s.",
144 /* 133*/ "#: User: Authed: Disconnected: Reason:",
145 /* 134*/ "Current modes on %s: %s",
146 /* 135*/ "Domain: Users: Flags:",
147 /* 136*/ "Sorry, no more accounts are allowed from this email domain.",
148 /* 137*/ "Password too weak - You need to avoid repeating characters, and have different character types (e.g. 1 number and 1 letter)",
149 /* 138*/ "User %s is not a master on %s - you must promote user to master status first.",
150 /* 139*/ "User %s is already an owner on %s.",
151 /* 140*/ "WARNING: This command will give COMPLETE control over %s to %s,\nincluding the ability to remove you as owner. If you are sure you want to\ndo this, type: GIVEOWNER %s #%s %s",
152 /* 141*/ "Hash value incorrect, try again.",
153 /* 142*/ "Showing %s for last %s.",
154 /* 143*/ "Change your nickname to something with none of the following characters: `~^[]{}|_\\",
155 /* 144*/ "Invalid digest algorithm.",
156 /* 145*/ "Challenge has either not been requested or has expired.",
157 /* 146*/ "For security reasons it is not possible to give the owner flag to other users\nusing CHANLEV. Use GIVEOWNER if you really wanted to do this.",
158 /* 147*/ "You must specify at least one valid flag to add.",
159 /* 148*/ "New ban is already contained within existing ban: %s",
160 /* 149*/ "New ban would replace at least one existing ban (%s), use UNBANMASK %s first if you want to set this ban.",
161 /* 150*/ "A temporary ban with this mask already exists, replacing it.",
162 /* 151*/ "That permanent ban already exists.",
163 /* 152*/ "That ban is already set with a longer duration.",
164 /* 153*/ "Replaced existing ban which was set with a shorter duration.",
165 /* 154*/ "Channel has too many user entries, aborting.",
166 /* 155*/ "No more bans are allowed on that channel.",
167 /* 156*/ "Warning: not removing registered ban %s from %s.",
168 /* 157*/ "Sorry, the registration service is unavailable to you at this time. Please try again later.", /* a deliberately vague message */
169 /* 158*/ "Too many accounts exist from this email address.",
170 /* 159*/ "That email address has been blocked.",
171 /* 160*/ "For more information, type HELP %s.",
172 /* 161*/ "Cannot send password for that account.",
173 /* 162*/ "The new email address is the same as current one.",
174 /* 163*/ "Supplied autolimit is invalid: %s",
175 /* 164*/ "This account has recently been modified. It will be unlocked on %s.",
176 /* 165*/ "That account is not locked.",
177 /* 166*/ "Your old account settings have been restored, please check your email.",
178 /* 167*/ "Bad reset code.",
179 /* 168*/ "WARNING: the selected algorithm is legacy functionality and is likely to be removed in the near future.",
180 /* 169*/ "Total: %d (owner: %d, master: %d, op: %d, voice: %d, known: %d, ban: %d).",
181 /* 170*/ "Pattern: Created by: Reason: Created:",
182 /* 171*/ "%-50s %-15s %-25s %s",
183 /* 172*/ "That pattern doesn't exist.",
184 /* 173*/ "That pattern already exists!",
185 /* 174*/ "Sorry, you can't use that email address.",
186 /* 175*/ "You do not have sufficient access to use %s on %s.",
187 /* 176*/ "No channel op events have been logged for %s.",
188 /* 177*/ "Channel op events on %s:\nNickname Account used",
189 /* 178*/ "Warning: %s (%s@%s) attempted to auth with your password but you already had %d users authed to your account.",
190 /* 179*/ "Warning: %s (%s@%s) authed with your password.",
191 /* 180*/ "Resettable statistics reset for %s.",
192 /* 181*/ "The channel has been deleted since the last known user was removed.",
193 /* 182*/ "Done. Flags for %s on %s are now: %s.",
194 /* 183*/ "Done. User %s is no longer known on %s.",
195 /* 184*/ "No change - check that you didn't specify an impossible flag combination.",
196 /* 185*/ "Users currently on %s:\nNick Username Flags Host",
197 /* 186*/ "Channel %s is currently empty.",
198 /* 187*/ "Total %d users: %d opped, %d voiced, %d others, %d with flags (%d ops, %d masters)"
199 };
200
201 void initmessages() {
202 int i;
203 int j;
204
205 for (i=0;i<MAXLANG;i++) {
206 cslanguages[i]=NULL;
207 for (j=0;j<MAXMESSAGES;j++) {
208 csmessages[i][j]=NULL;
209 }
210 }
211 }