···132132 /* Make this look a bit more expected for normal users */
133133 if (si->smu == NULL && c->access != NULL && !strcasecmp(c->access, AC_AUTHENTICATED))
134134 {
135135- command_fail(si, fault_noprivs, _("You are not logged in."));
135135+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
136136 language_set_active(NULL);
137137 return;
138138 }
···167167 command_fail(si, fault_noprivs, STR_NO_PRIVILEGE, accessbuf);
168168 }
169169 else
170170- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
170170+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
171171 /* logcommand(si, CMDLOG_ADMIN, "DENIED COMMAND: \2%s\2 used \2%s\2 \2%s\2", origin, svs->name, cmd); */
172172 if (si->smu != NULL)
173173 language_set_active(NULL);
-1
po/POTFILES.in
···11# Please don't update this file manually - use 'make update-potfiles' instead!
22include/atheme/constants.h
33libathemecore/commandhelp.c
44-libathemecore/commandtree.c
54libathemecore/ptasks.c
65libathemecore/services.c
76modules/alis/main.c
+10-122
po/atheme.pot
···1313msgstr ""
1414"Project-Id-Version: Atheme IRC Services 7.3.0-rc2\n"
1515"Report-Msgid-Bugs-To: <https://github.com/atheme/atheme/issues/>\n"
1616-"POT-Creation-Date: 2019-04-13 11:27+0000\n"
1616+"POT-Creation-Date: 2019-04-13 14:20+0000\n"
1717"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1818"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1919"Language-Team: LANGUAGE <LL@li.org>\n"
···173173msgid "%s can now take ownership of %s."
174174msgstr ""
175175176176-#: modules/chanserv/invite.c:21 modules/chanserv/unban_self.c:26 modules/hostserv/drop.c:24
177177-#: modules/hostserv/group.c:23 modules/hostserv/onoff.c:22 modules/hostserv/onoff.c:59 modules/nickserv/group.c:21
178178-#: modules/nickserv/identify.c:35 modules/operserv/identify.c:28
176176+#: include/atheme/constants.h:80
179177#, c-format
180178msgid "%s can only be executed via IRC."
181179msgstr ""
···594592msgid "%s is an invalid username."
595593msgstr ""
596594597597-#: modules/chanserv/akick.c:229 modules/chanserv/akick.c:494 modules/chanserv/akick.c:631 modules/chanserv/ban.c:49
598598-#: modules/chanserv/clear_bans.c:64 modules/chanserv/clear_users.c:51 modules/chanserv/count.c:52
599599-#: modules/chanserv/flags.c:189 modules/chanserv/getkey.c:34 modules/chanserv/halfop.c:48
600600-#: modules/chanserv/invite.c:47 modules/chanserv/kick.c:45 modules/chanserv/op.c:36 modules/chanserv/owner.c:48
601601-#: modules/chanserv/protect.c:48 modules/chanserv/quiet.c:295 modules/chanserv/recover.c:41
602602-#: modules/chanserv/status.c:38 modules/chanserv/template.c:86 modules/chanserv/template.c:147
603603-#: modules/chanserv/topic.c:45 modules/chanserv/topic.c:116 modules/chanserv/topic.c:192
604604-#: modules/chanserv/topic.c:287 modules/chanserv/voice.c:36 modules/chanserv/why.c:69 modules/chanserv/xop.c:291
605605-#: modules/chanserv/xop.c:427
595595+#: include/atheme/constants.h:76
606596#, c-format
607597msgid "%s is closed."
608598msgstr ""
···612602msgid "%s is closed; it cannot be transferred."
613603msgstr ""
614604615615-#: modules/botserv/bottalk.c:41 modules/botserv/bottalk.c:108 modules/chanserv/ban.c:37 modules/chanserv/ban.c:122
616616-#: modules/chanserv/clear_bans.c:52 modules/chanserv/clear_users.c:39 modules/chanserv/getkey.c:46
617617-#: modules/chanserv/invite.c:59 modules/chanserv/quiet.c:283 modules/chanserv/quiet.c:392
618618-#: modules/chanserv/recover.c:61 modules/chanserv/topic.c:39 modules/chanserv/topic.c:104
619619-#: modules/chanserv/topic.c:180 modules/chanserv/topic.c:275 modules/chanserv/unban_self.c:54
620620-#: modules/gameserv/gameserv_common.h:59
605605+#: include/atheme/constants.h:77
621606#, c-format
622607msgid "%s is currently empty."
623608msgstr ""
···863848msgid "%s is not registered, and was not marked."
864849msgstr ""
865850866866-#: modules/botserv/main.c:797 modules/botserv/main.c:873 modules/chanserv/access.c:572 modules/chanserv/access.c:675
867867-#: modules/chanserv/access.c:780 modules/chanserv/access.c:929 modules/chanserv/fflags.c:67
868868-#: modules/chanserv/flags.c:301 modules/chanserv/flags.c:375 modules/chanserv/ftransfer.c:32
869869-#: modules/chanserv/set_founder.c:52 modules/hostserv/vhost.c:31 modules/hostserv/vhostnick.c:36
870870-#: modules/memoserv/forward.c:50 modules/memoserv/ignore.c:55 modules/nickserv/access.c:213
871871-#: modules/nickserv/cert.c:48 modules/nickserv/cert.c:90 modules/nickserv/drop.c:42 modules/nickserv/drop.c:155
872872-#: modules/nickserv/freeze.c:59 modules/nickserv/hold.c:38 modules/nickserv/info.c:83
873873-#: modules/nickserv/listchans.c:36 modules/nickserv/listgroups.c:36 modules/nickserv/mark.c:67
874874-#: modules/nickserv/multimark.c:772 modules/nickserv/regnolimit.c:38 modules/nickserv/resetpass.c:29
875875-#: modules/nickserv/restrict.c:81 modules/nickserv/return.c:32 modules/nickserv/sendpass.c:55
876876-#: modules/nickserv/sendpass_user.c:56 modules/nickserv/setpass.c:37 modules/nickserv/taxonomy.c:32
877877-#: modules/nickserv/verify.c:32 modules/nickserv/verify.c:150 modules/nickserv/vhost.c:59
878878-#: modules/operserv/soper.c:96 modules/operserv/soper.c:165 modules/operserv/soper.c:211
851851+#: include/atheme/constants.h:81
879852#, c-format
880853msgid "%s is not registered."
881854msgstr ""
···22942267msgid "Channel %s does not have RPGServ enabled."
22952268msgstr ""
2296226922972297-#: modules/botserv/bottalk.c:35 modules/botserv/bottalk.c:102 modules/botserv/set_fantasy.c:33
22982298-#: modules/botserv/set_nobot.c:33 modules/botserv/set_saycaller.c:32 modules/chanserv/access.c:472
22992299-#: modules/chanserv/access.c:544 modules/chanserv/access.c:647 modules/chanserv/access.c:754
23002300-#: modules/chanserv/access.c:903 modules/chanserv/access.c:1047 modules/chanserv/access.c:1087
23012301-#: modules/chanserv/access.c:1178 modules/chanserv/access.c:1274 modules/chanserv/akick.c:223
23022302-#: modules/chanserv/akick.c:488 modules/chanserv/akick.c:625 modules/chanserv/antiflood.c:392
23032303-#: modules/chanserv/ban.c:31 modules/chanserv/ban.c:116 modules/chanserv/clear_bans.c:46
23042304-#: modules/chanserv/clear_users.c:33 modules/chanserv/close.c:63 modules/chanserv/count.c:35
23052305-#: modules/chanserv/drop.c:36 modules/chanserv/drop.c:132 modules/chanserv/fflags.c:35 modules/chanserv/flags.c:183
23062306-#: modules/chanserv/ftransfer.c:44 modules/chanserv/getkey.c:28 modules/chanserv/halfop.c:36
23072307-#: modules/chanserv/hold.c:34 modules/chanserv/info.c:43 modules/chanserv/invite.c:41 modules/chanserv/kick.c:33
23082308-#: modules/chanserv/kick.c:106 modules/chanserv/mark.c:35 modules/chanserv/op.c:30 modules/chanserv/owner.c:36
23092309-#: modules/chanserv/protect.c:36 modules/chanserv/quiet.c:277 modules/chanserv/quiet.c:386
23102310-#: modules/chanserv/recover.c:35 modules/chanserv/set_email.c:23 modules/chanserv/set_entrymsg.c:22
23112311-#: modules/chanserv/set_fantasy.c:22 modules/chanserv/set_founder.c:63 modules/chanserv/set_gameserv.c:24
23122312-#: modules/chanserv/set_guard.c:22 modules/chanserv/set_keeptopic.c:22 modules/chanserv/set_limitflags.c:22
23132313-#: modules/chanserv/set_mlock.c:37 modules/chanserv/set_prefix.c:37 modules/chanserv/set_private.c:22
23142314-#: modules/chanserv/set_property.c:40 modules/chanserv/set_pubacl.c:22 modules/chanserv/set_restricted.c:22
23152315-#: modules/chanserv/set_secure.c:22 modules/chanserv/set_topiclock.c:22 modules/chanserv/set_url.c:23
23162316-#: modules/chanserv/set_verbose.c:22 modules/chanserv/status.c:30 modules/chanserv/sync.c:348
23172317-#: modules/chanserv/template.c:67 modules/chanserv/topic.c:32 modules/chanserv/topic.c:97
23182318-#: modules/chanserv/topic.c:173 modules/chanserv/topic.c:268 modules/chanserv/unban_self.c:48
23192319-#: modules/chanserv/voice.c:30 modules/chanserv/why.c:51 modules/chanserv/xop.c:285 modules/chanserv/xop.c:421
23202320-#: modules/gameserv/gameserv_common.h:54 modules/rpgserv/enable.c:29 modules/rpgserv/enable.c:60
23212321-#: modules/rpgserv/info.c:30 modules/rpgserv/set.c:183
23222322-#, c-format
23232323-msgid "Channel %s is not registered."
23242324-msgstr ""
23252325-23262270#: modules/chanserv/taxonomy.c:38
23272271#, c-format
23282272msgid "Channel %s is private."
···35983542msgid "Inspect the Perl interpreter"
35993543msgstr ""
3600354436013601-#: include/atheme/constants.h:76
35453545+#: include/atheme/constants.h:78
36023546#, c-format
36033547msgid "Insufficient parameters for %s."
36043548msgstr ""
···37003644msgid "Invalid option for %s"
37013645msgstr ""
3702364637033703-#: include/atheme/constants.h:77
36473647+#: include/atheme/constants.h:79
37043648#, c-format
37053649msgid "Invalid parameters for %s."
37063650msgstr ""
···43774321#: modules/nickserv/group.c:100 modules/nickserv/set_accountname.c:50
43784322#, c-format
43794323msgid "Nick %s is not registered to your account."
43804380-msgstr ""
43814381-43824382-#: modules/hostserv/drop.c:31 modules/hostserv/group.c:30 modules/hostserv/onoff.c:29 modules/hostserv/onoff.c:66
43834383-#: modules/hostserv/request.c:228 modules/nickserv/group.c:95 modules/nickserv/group.c:136
43844384-#: modules/nickserv/group.c:163 modules/nickserv/set_accountname.c:45
43854385-#, c-format
43864386-msgid "Nick %s is not registered."
43874324msgstr ""
4388432543894326#: modules/nickserv/group.c:71
···80627999msgid "You are not allowed to set %s on template %s in %s."
80638000msgstr ""
8064800180658065-#: modules/statserv/channel.c:48
80668066-msgid "You are not authorised to perform this action."
80678067-msgstr ""
80688068-80698002#: modules/chanserv/op.c:59
80708003#, c-format
80718004msgid "You are not authorized to (de)op %s on %s."
···80868019msgid "You are not authorized to assign the bot %s to a channel."
80878020msgstr ""
8088802180898089-#: modules/chanserv/flags.c:292 modules/chanserv/flags.c:337 modules/chanserv/set_email.c:29
80908090-#: modules/chanserv/set_entrymsg.c:28 modules/chanserv/set_prefix.c:43 modules/chanserv/set_url.c:29
80918091-#: modules/chanserv/template.c:139 modules/groupserv/drop.c:43 modules/groupserv/join.c:50
80928092-#: modules/groupserv/set_channel.c:27 modules/groupserv/set_description.c:27 modules/groupserv/set_email.c:27
80938093-#: modules/groupserv/set_groupname.c:46 modules/groupserv/set_joinflags.c:28 modules/groupserv/set_open.c:33
80948094-#: modules/groupserv/set_public.c:33 modules/groupserv/set_url.c:27
80958095-msgid "You are not authorized to execute this command."
80968096-msgstr ""
80978097-80988022#: modules/chanserv/xop.c:51 modules/chanserv/xop.c:124
80998023#, c-format
81008024msgid "You are not authorized to modify the access entry for %s on %s."
81018025msgstr ""
8102802681038103-#: modules/chanserv/antiflood.c:400 modules/chanserv/antiflood.c:464 modules/chanserv/set_fantasy.c:34
81048104-#: modules/chanserv/set_gameserv.c:36 modules/chanserv/set_guard.c:34 modules/chanserv/set_keeptopic.c:34
81058105-#: modules/chanserv/set_limitflags.c:34 modules/chanserv/set_mlock.c:47 modules/chanserv/set_private.c:34
81068106-#: modules/chanserv/set_property.c:46 modules/chanserv/set_pubacl.c:34 modules/chanserv/set_restricted.c:34
81078107-#: modules/chanserv/set_secure.c:34 modules/chanserv/set_topiclock.c:34 modules/chanserv/set_verbose.c:34
81088108-#: modules/chanserv/sync.c:360
81098109-msgid "You are not authorized to perform this command."
81108110-msgstr ""
81118111-81128112-#: libathemecore/commandtree.c:170 modules/alis/main.c:218 modules/botserv/bottalk.c:47
81138113-#: modules/botserv/bottalk.c:114 modules/botserv/info.c:76 modules/botserv/set_fantasy.c:39
81148114-#: modules/botserv/set_nobot.c:45 modules/botserv/set_private.c:47 modules/botserv/set_saycaller.c:38
81158115-#: modules/chanserv/access.c:482 modules/chanserv/access.c:561 modules/chanserv/access.c:665
81168116-#: modules/chanserv/access.c:709 modules/chanserv/access.c:770 modules/chanserv/access.c:819
81178117-#: modules/chanserv/access.c:919 modules/chanserv/access.c:968 modules/chanserv/access.c:1100
81188118-#: modules/chanserv/access.c:1191 modules/chanserv/access.c:1287 modules/chanserv/akick.c:308
81198119-#: modules/chanserv/akick.c:503 modules/chanserv/akick.c:643 modules/chanserv/ban.c:43 modules/chanserv/ban.c:131
81208120-#: modules/chanserv/clear_bans.c:58 modules/chanserv/clear_users.c:45 modules/chanserv/count.c:45
81218121-#: modules/chanserv/drop.c:49 modules/chanserv/flags.c:94 modules/chanserv/getkey.c:40 modules/chanserv/halfop.c:42
81228122-#: modules/chanserv/halfop.c:75 modules/chanserv/invite.c:53 modules/chanserv/kick.c:39 modules/chanserv/kick.c:112
81238123-#: modules/chanserv/op.c:72 modules/chanserv/owner.c:42 modules/chanserv/owner.c:75 modules/chanserv/protect.c:42
81248124-#: modules/chanserv/protect.c:75 modules/chanserv/quiet.c:122 modules/chanserv/quiet.c:289
81258125-#: modules/chanserv/quiet.c:401 modules/chanserv/recover.c:47 modules/chanserv/template.c:79
81268126-#: modules/chanserv/topic.c:51 modules/chanserv/topic.c:110 modules/chanserv/topic.c:186
81278127-#: modules/chanserv/topic.c:281 modules/chanserv/unban_self.c:67 modules/chanserv/why.c:62
81288128-#: modules/chanserv/xop.c:316 modules/chanserv/xop.c:322 modules/chanserv/xop.c:341 modules/chanserv/xop.c:347
81298129-#: modules/chanserv/xop.c:361 modules/chanserv/xop.c:433 modules/gameserv/gameserv_common.h:95
81308130-#: modules/groupserv/flags.c:44 modules/groupserv/flags.c:80 modules/groupserv/flags.c:132
81318131-#: modules/groupserv/invite.c:41 modules/groupserv/listchans.c:44 modules/memoserv/sendops.c:89
81328132-#: modules/nickserv/sendpass_user.c:39 modules/operserv/soper.c:19 modules/rpgserv/set.c:189
80278027+#: include/atheme/constants.h:83
81338028msgid "You are not authorized to perform this operation."
81348029msgstr ""
81358030···81488043msgid "You are not authorized to use the target argument."
81498044msgstr ""
8150804581518151-#: libathemecore/commandtree.c:135 modules/botserv/set_nobot.c:39 modules/botserv/set_private.c:41
81528152-#: modules/chanserv/akick.c:617 modules/chanserv/flags.c:284 modules/chanserv/set_founder.c:40
81538153-#: modules/chanserv/status.c:57 modules/chanserv/template.c:127 modules/chanserv/unban_self.c:60
81548154-#: modules/chanserv/xop.c:277 modules/groupserv/fflags.c:37 modules/hostserv/offer.c:151 modules/infoserv/main.c:250
81558155-#: modules/nickserv/access.c:199 modules/nickserv/access.c:251 modules/nickserv/access.c:384
81568156-#: modules/nickserv/badmail.c:108 modules/nickserv/cert.c:34 modules/nickserv/cert.c:76 modules/nickserv/cert.c:131
81578157-#: modules/nickserv/cert.c:167 modules/nickserv/listchans.c:45 modules/nickserv/listgroups.c:45
81588158-#: modules/nickserv/logout.c:23 modules/nickserv/status.c:76
80468046+#: include/atheme/constants.h:84
81598047msgid "You are not logged in."
81608048msgstr ""
81618049···83088196msgid "You do not have appropriate permissions to set flags: %s"
83098197msgstr ""
8310819883118311-#: include/atheme/constants.h:78
81998199+#: include/atheme/constants.h:82
83128200#, c-format
83138201msgid "You do not have the %s privilege."
83148202msgstr ""
+6
include/atheme/constants.h
···7373# define TIME_FORMAT "%b %d %H:%M:%S %Y %z"
7474#endif
75757676+#define STR_CHANNEL_IS_CLOSED _("\2%s\2 is closed.")
7777+#define STR_CHANNEL_IS_EMPTY _("\2%s\2 is currently empty.")
7678#define STR_INSUFFICIENT_PARAMS _("Insufficient parameters for \2%s\2.")
7779#define STR_INVALID_PARAMS _("Invalid parameters for \2%s\2.")
8080+#define STR_IRC_COMMAND_ONLY _("\2%s\2 can only be executed via IRC.")
8181+#define STR_IS_NOT_REGISTERED _("\2%s\2 is not registered.")
7882#define STR_NO_PRIVILEGE _("You do not have the \2%s\2 privilege.")
8383+#define STR_NOT_AUTHORIZED _("You are not authorized to perform this operation.")
8484+#define STR_NOT_LOGGED_IN _("You are not logged in.")
79858086#endif /* !ATHEME_INC_CONSTANTS_H */
+1-1
modules/alis/main.c
···215215 {
216216 if (! has_priv(si, PRIV_CHAN_AUSPEX))
217217 {
218218- (void) command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
218218+ (void) command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
219219 return false;
220220 }
221221
+6-6
modules/botserv/bottalk.c
···32323333 if (!mc)
3434 {
3535- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
3535+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
3636 return;
3737 }
38383939 if (!c)
4040 {
4141- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel);
4141+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel);
4242 return;
4343 }
44444545 if (!(chanacs_source_flags(mc, si) & (CA_OP | CA_AUTOOP)))
4646 {
4747- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4747+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4848 return;
4949 }
5050···9999100100 if (!mc)
101101 {
102102- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
102102+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
103103 return;
104104 }
105105106106 if (!c)
107107 {
108108- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel);
108108+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel);
109109 return;
110110 }
111111112112 if (!(chanacs_source_flags(mc, si) & (CA_OP | CA_AUTOOP)))
113113 {
114114- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
114114+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
115115 return;
116116 }
117117
+1-1
modules/botserv/info.c
···7373 {
7474 if (!(mc->flags & MC_PUBACL) && !chanacs_source_has_flag(mc, si, CA_ACLVIEW) && !has_priv(si, PRIV_CHAN_AUSPEX))
7575 {
7676- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
7676+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
7777 return;
7878 }
7979
+2-2
modules/botserv/main.c
···794794795795 if (mc == NULL)
796796 {
797797- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), parv[0]);
797797+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
798798 return;
799799 }
800800···870870871871 if (mc == NULL)
872872 {
873873- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), parv[0]);
873873+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
874874 return;
875875 }
876876
+2-2
modules/botserv/set_fantasy.c
···3030 mc = mychan_find(channel);
3131 if (!mc)
3232 {
3333- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
3333+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
3434 return;
3535 }
36363737 if (!chanacs_source_has_flag(mc, si, CA_SET))
3838 {
3939- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
3939+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4040 return;
4141 }
4242
+3-3
modules/botserv/set_nobot.c
···3030 mc = mychan_find(channel);
3131 if (!mc)
3232 {
3333- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
3333+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
3434 return;
3535 }
36363737 if (!si->smu)
3838 {
3939- command_fail(si, fault_noprivs, _("You are not logged in."));
3939+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
4040 return;
4141 }
42424343 if (!has_priv(si, PRIV_CHAN_ADMIN))
4444 {
4545- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4545+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4646 return;
4747 }
4848
+2-2
modules/botserv/set_private.c
···38383939 if (!si->smu)
4040 {
4141- command_fail(si, fault_noprivs, _("You are not logged in."));
4141+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
4242 return;
4343 }
44444545 if (!has_priv(si, PRIV_CHAN_ADMIN))
4646 {
4747- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4747+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4848 return;
4949 }
5050
+2-2
modules/botserv/set_saycaller.c
···2929 mc = mychan_find(channel);
3030 if (!mc)
3131 {
3232- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
3232+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
3333 return;
3434 }
35353636 if (!chanacs_source_has_flag(mc, si, CA_SET))
3737 {
3838- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
3838+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3939 return;
4040 }
4141
+24-24
modules/chanserv/access.c
···469469 mc = mychan_find(channel);
470470 if (!mc)
471471 {
472472- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
472472+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
473473 return;
474474 }
475475···479479 operoverride = true;
480480 else
481481 {
482482- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
482482+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
483483 return;
484484 }
485485 }
···541541 mc = mychan_find(channel);
542542 if (!mc)
543543 {
544544- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
544544+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
545545 return;
546546 }
547547···558558 operoverride = true;
559559 else
560560 {
561561- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
561561+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
562562 return;
563563 }
564564 }
···569569 {
570570 if (!(mt = myentity_find_ext(target)))
571571 {
572572- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
572572+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
573573 return;
574574 }
575575 target = mt->name;
···644644 mc = mychan_find(channel);
645645 if (!mc)
646646 {
647647- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
647647+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
648648 return;
649649 }
650650···662662 */
663663 if (!chanacs_source_has_flag(mc, si, CA_FLAGS) && entity(si->smu) != mt)
664664 {
665665- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
665665+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
666666 return;
667667 }
668668···672672 {
673673 if (mt == NULL)
674674 {
675675- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
675675+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
676676 return;
677677 }
678678 target = mt->name;
···706706 {
707707 if (restrictflags & CA_AKICK && entity(si->smu) == mt)
708708 {
709709- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
709709+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
710710 return;
711711 }
712712···751751 mc = mychan_find(channel);
752752 if (!mc)
753753 {
754754- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
754754+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
755755 return;
756756 }
757757···767767 */
768768 if (!chanacs_source_has_flag(mc, si, CA_FLAGS))
769769 {
770770- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
770770+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
771771 return;
772772 }
773773···777777 {
778778 if (!(mt = myentity_find_ext(target)))
779779 {
780780- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
780780+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
781781 return;
782782 }
783783 target = mt->name;
···816816 {
817817 if (restrictflags & CA_AKICK && entity(si->smu) == mt)
818818 {
819819- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
819819+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
820820 return;
821821 }
822822···900900 mc = mychan_find(channel);
901901 if (!mc)
902902 {
903903- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
903903+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
904904 return;
905905 }
906906···916916 */
917917 if (!chanacs_source_has_flag(mc, si, CA_FLAGS))
918918 {
919919- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
919919+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
920920 return;
921921 }
922922···926926 {
927927 if (!(mt = myentity_find_ext(target)))
928928 {
929929- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
929929+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
930930 return;
931931 }
932932 target = mt->name;
···965965 {
966966 if (restrictflags & CA_AKICK && entity(si->smu) == mt)
967967 {
968968- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
968968+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
969969 return;
970970 }
971971···10441044 mc = mychan_find(channel);
10451045 if (!mc)
10461046 {
10471047- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
10471047+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
10481048 return;
10491049 }
10501050···10841084 mc = mychan_find(channel);
10851085 if (!mc)
10861086 {
10871087- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
10871087+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
10881088 return;
10891089 }
10901090···1097109710981098 if (!chanacs_source_has_flag(mc, si, CA_FLAGS))
10991099 {
11001100- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
11001100+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
11011101 return;
11021102 }
11031103···11751175 mc = mychan_find(channel);
11761176 if (!mc)
11771177 {
11781178- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
11781178+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
11791179 return;
11801180 }
11811181···1188118811891189 if (!chanacs_source_has_flag(mc, si, CA_FLAGS))
11901190 {
11911191- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
11911191+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
11921192 return;
11931193 }
11941194···12711271 mc = mychan_find(channel);
12721272 if (!mc)
12731273 {
12741274- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
12741274+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
12751275 return;
12761276 }
12771277···1284128412851285 if (!chanacs_source_has_flag(mc, si, CA_FLAGS))
12861286 {
12871287- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
12871287+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
12881288 return;
12891289 }
12901290
+10-10
modules/chanserv/akick.c
···220220 mc = mychan_find(chan);
221221 if (!mc)
222222 {
223223- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
223223+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
224224 return;
225225 }
226226227227 if (metadata_find(mc, "private:close:closer"))
228228 {
229229- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
229229+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
230230 return;
231231 }
232232···305305306306 if ((chanacs_source_flags(mc, si) & (CA_FLAGS | CA_REMOVE)) != (CA_FLAGS | CA_REMOVE))
307307 {
308308- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
308308+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
309309 return;
310310 }
311311···485485 mc = mychan_find(chan);
486486 if (!mc)
487487 {
488488- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
488488+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
489489 return;
490490 }
491491492492 if (metadata_find(mc, "private:close:closer"))
493493 {
494494- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
494494+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
495495 return;
496496 }
497497···500500501501 if ((chanacs_source_flags(mc, si) & (CA_FLAGS | CA_REMOVE)) != (CA_FLAGS | CA_REMOVE))
502502 {
503503- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
503503+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
504504 return;
505505 }
506506···614614 // if they're opers and just want to LIST, they don't have to log in
615615 if (!(has_priv(si, PRIV_CHAN_AUSPEX)))
616616 {
617617- command_fail(si, fault_noprivs, _("You are not logged in."));
617617+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
618618 return;
619619 }
620620 }
···622622 mc = mychan_find(chan);
623623 if (!mc)
624624 {
625625- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
625625+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
626626 return;
627627 }
628628629629 if (metadata_find(mc, "private:close:closer"))
630630 {
631631- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
631631+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
632632 return;
633633 }
634634···640640 operoverride = true;
641641 else
642642 {
643643- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
643643+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
644644 return;
645645 }
646646 }
+3-3
modules/chanserv/antiflood.c
···389389390390 if (!(mc = mychan_find(parv[0])))
391391 {
392392- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
392392+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
393393 return;
394394 }
395395···397397 oper-specific settings (i.e. AKILL action) */
398398 if (!chanacs_source_has_flag(mc, si, CA_SET) && !has_priv(si, PRIV_CHAN_ADMIN))
399399 {
400400- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
400400+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
401401 return;
402402 }
403403···461461 }
462462 else
463463 {
464464- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
464464+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
465465 return;
466466 }
467467 }
+7-7
modules/chanserv/ban.c
···28282929 if (!mc)
3030 {
3131- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
3131+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
3232 return;
3333 }
34343535 if (!c)
3636 {
3737- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel);
3737+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel);
3838 return;
3939 }
40404141 if (!chanacs_source_has_flag(mc, si, CA_REMOVE))
4242 {
4343- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4343+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4444 return;
4545 }
46464747 if (metadata_find(mc, "private:close:closer"))
4848 {
4949- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), channel);
4949+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, channel);
5050 return;
5151 }
5252···113113114114 if (!mc)
115115 {
116116- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
116116+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
117117 return;
118118 }
119119120120 if (!c)
121121 {
122122- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel);
122122+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel);
123123 return;
124124 }
125125···128128 !chanacs_source_has_flag(mc, si, CA_EXEMPT) ||
129129 irccasecmp(target, si->su->nick)))
130130 {
131131- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
131131+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
132132 return;
133133 }
134134
+3-3
modules/chanserv/clear_akicks.c
···29293030 if (!(mc = mychan_find(name)))
3131 {
3232- command_fail(si, fault_nosuch_target, "\2%s\2 is not registered.", name);
3232+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name);
3333 return;
3434 }
35353636 if (metadata_find(mc, "private:close:closer"))
3737 {
3838- command_fail(si, fault_noprivs, "\2%s\2 is closed.", name);
3838+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, name);
3939 return;
4040 }
4141···47474848 if (!(chanacs_source_has_flag(mc, si, CA_RECOVER) && chanacs_source_has_flag(mc, si, CA_FLAGS)))
4949 {
5050- command_fail(si, fault_noprivs, "You are not authorized to perform this operation.");
5050+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
5151 return;
5252 }
5353
+4-4
modules/chanserv/clear_bans.c
···43434444 if (!mc)
4545 {
4646- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
4646+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
4747 return;
4848 }
49495050 if (!(c = channel_find(parv[0])))
5151 {
5252- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), parv[0]);
5252+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, parv[0]);
5353 return;
5454 }
55555656 if (!chanacs_source_has_flag(mc, si, CA_RECOVER))
5757 {
5858- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
5858+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
5959 return;
6060 }
61616262 if (metadata_find(mc, "private:close:closer"))
6363 {
6464- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), parv[0]);
6464+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, parv[0]);
6565 return;
6666 }
6767
+3-3
modules/chanserv/clear_flags.c
···29293030 if (!(mc = mychan_find(name)))
3131 {
3232- command_fail(si, fault_nosuch_target, "\2%s\2 is not registered.", name);
3232+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name);
3333 return;
3434 }
35353636 if (metadata_find(mc, "private:close:closer"))
3737 {
3838- command_fail(si, fault_noprivs, "\2%s\2 is closed.", name);
3838+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, name);
3939 return;
4040 }
41414242 if (!chanacs_source_has_flag(mc, si, CA_FOUNDER))
4343 {
4444- command_fail(si, fault_noprivs, "You are not authorized to perform this operation.");
4444+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4545 return;
4646 }
4747
+4-4
modules/chanserv/clear_users.c
···30303131 if (!mc)
3232 {
3333- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
3333+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
3434 return;
3535 }
36363737 if (!(c = channel_find(channel)))
3838 {
3939- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel);
3939+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel);
4040 return;
4141 }
42424343 if (!chanacs_source_has_flag(mc, si, CA_RECOVER))
4444 {
4545- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4545+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4646 return;
4747 }
48484949 if (metadata_find(mc, "private:close:closer"))
5050 {
5151- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), channel);
5151+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, channel);
5252 return;
5353 }
5454
+6-6
modules/chanserv/clone.c
···29293030 if (!(mc = mychan_find(source)))
3131 {
3232- command_fail(si, fault_nosuch_target, "\2%s\2 is not registered.", source);
3232+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, source);
3333 return;
3434 }
35353636 if (!(mc2 = mychan_find(target)))
3737 {
3838- command_fail(si, fault_nosuch_target, "\2%s\2 is not registered.", target);
3838+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
3939 return;
4040 }
4141···47474848 if (metadata_find(mc, "private:close:closer"))
4949 {
5050- command_fail(si, fault_noprivs, "\2%s\2 is closed.", source);
5050+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, source);
5151 return;
5252 }
53535454 if (metadata_find(mc2, "private:close:closer"))
5555 {
5656- command_fail(si, fault_noprivs, "\2%s\2 is closed.", target);
5656+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, target);
5757 return;
5858 }
5959···71717272 if (!(mc->flags & MC_PUBACL) && !chanacs_source_has_flag(mc, si, CA_ACLVIEW))
7373 {
7474- command_fail(si, fault_noprivs, "You are not authorized to perform this operation.");
7474+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
7575 return;
7676 }
77777878 if (!chanacs_source_has_flag(mc2, si, CA_FOUNDER))
7979 {
8080- command_fail(si, fault_noprivs, "You are not authorized to perform this operation.");
8080+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
8181 return;
8282 }
8383
+1-1
modules/chanserv/close.c
···60606161 if (!(mc = mychan_find(target)))
6262 {
6363- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), target);
6363+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
6464 return;
6565 }
6666
+3-3
modules/chanserv/count.c
···32323333 if (!mc)
3434 {
3535- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
3535+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
3636 return;
3737 }
3838···4242 operoverride = true;
4343 else
4444 {
4545- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4545+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4646 return;
4747 }
4848 }
49495050 if (metadata_find(mc, "private:close:closer"))
5151 {
5252- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
5252+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
5353 return;
5454 }
5555
+3-3
modules/chanserv/drop.c
···33333434 if (! (mc = mychan_find(name)))
3535 {
3636- (void) command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), name);
3636+ (void) command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name);
3737 return;
3838 }
3939···46464747 if (! is_founder(mc, entity(si->smu)))
4848 {
4949- (void) command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4949+ (void) command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
5050 return;
5151 }
5252···129129130130 if (! (mc = mychan_find(name)))
131131 {
132132- (void) command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), name);
132132+ (void) command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name);
133133 return;
134134 }
135135
+2-2
modules/chanserv/fflags.c
···3232 mc = mychan_find(channel);
3333 if (!mc)
3434 {
3535- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
3535+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
3636 return;
3737 }
3838···6464 {
6565 if (!(mt = myentity_find_ext(target)))
6666 {
6767- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
6767+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
6868 return;
6969 }
7070 target = mt->name;
+9-9
modules/chanserv/flags.c
···9191 operoverride = true;
9292 else
9393 {
9494- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
9494+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
9595 return;
9696 }
9797 }
···180180 mc = mychan_find(channel);
181181 if (!mc)
182182 {
183183- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
183183+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
184184 return;
185185 }
186186187187 if (metadata_find(mc, "private:close:closer") && (target || !has_priv(si, PRIV_CHAN_AUSPEX)))
188188 {
189189- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), channel);
189189+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, channel);
190190 return;
191191 }
192192···238238239239 if (!chanacs_source_has_flag(mc, si, CA_FOUNDER))
240240 {
241241- command_fail(si, fault_noprivs, "You are not authorized to perform this operation.");
241241+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
242242 return;
243243 }
244244···281281282282 if (!si->smu)
283283 {
284284- command_fail(si, fault_noprivs, _("You are not logged in."));
284284+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
285285 return;
286286 }
287287···289289 {
290290 if (!(mc->flags & MC_PUBACL) && !chanacs_source_has_flag(mc, si, CA_ACLVIEW))
291291 {
292292- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
292292+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
293293 return;
294294 }
295295 if (validhostmask(target))
···298298 {
299299 if (!(mt = myentity_find_ext(target)))
300300 {
301301- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
301301+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
302302 return;
303303 }
304304 sfree(target);
···334334 irccasecmp(target, entity(si->smu)->name) ||
335335 strcmp(flagstr, "-*"))
336336 {
337337- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
337337+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
338338 return;
339339 }
340340 }
···372372 {
373373 if (!(mt = myentity_find_ext(target)))
374374 {
375375- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
375375+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
376376 return;
377377 }
378378 sfree(target);
+2-2
modules/chanserv/ftransfer.c
···29293030 if (!(mt = myentity_find_ext(newfndr)))
3131 {
3232- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), newfndr);
3232+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, newfndr);
3333 return;
3434 }
3535···41414242 if (!(mc = mychan_find(name)))
4343 {
4444- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), name);
4444+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name);
4545 return;
4646 }
4747
+4-4
modules/chanserv/getkey.c
···2525 mc = mychan_find(chan);
2626 if (!mc)
2727 {
2828- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
2828+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
2929 return;
3030 }
31313232 if (metadata_find(mc, "private:close:closer"))
3333 {
3434- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
3434+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
3535 return;
3636 }
37373838 if (!chanacs_source_has_flag(mc, si, CA_INVITE))
3939 {
4040- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4040+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4141 return;
4242 }
43434444 if (!mc->chan)
4545 {
4646- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), mc->name);
4646+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, mc->name);
4747 return;
4848 }
4949
+4-4
modules/chanserv/halfop.c
···3333 mc = mychan_find(chan);
3434 if (!mc)
3535 {
3636- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
3636+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
3737 return;
3838 }
39394040 if (!chanacs_source_has_flag(mc, si, CA_HALFOP))
4141 {
4242- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4242+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4343 return;
4444 }
45454646 if (metadata_find(mc, "private:close:closer"))
4747 {
4848- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
4848+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
4949 return;
5050 }
5151···7272 // SECURE check; we can skip this if deopping or sender == target, because we already verified
7373 if (halfop && (si->su != tu) && (mc->flags & MC_SECURE) && !chanacs_user_has_flag(mc, tu, CA_HALFOP) && !chanacs_user_has_flag(mc, tu, CA_AUTOHALFOP))
7474 {
7575- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
7575+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
7676 command_fail(si, fault_noprivs, _("\2%s\2 has the SECURE option enabled, and \2%s\2 does not have appropriate access."), mc->name, tu->nick);
7777 continue;
7878 }
+1-1
modules/chanserv/hold.c
···31313232 if (!(mc = mychan_find(target)))
3333 {
3434- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), target);
3434+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
3535 return;
3636 }
3737
+1-1
modules/chanserv/info.c
···40404141 if (!(mc = mychan_find(name)))
4242 {
4343- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), name);
4343+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name);
4444 return;
4545 }
4646
+5-5
modules/chanserv/invite.c
···18181919 if (si->su == NULL)
2020 {
2121- command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "INVITE");
2121+ command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "INVITE");
2222 return;
2323 }
2424···38383939 if (!(mc = mychan_find(chan)))
4040 {
4141- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
4141+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
4242 return;
4343 }
44444545 if (metadata_find(mc, "private:close:closer"))
4646 {
4747- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
4747+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
4848 return;
4949 }
50505151 if (!chanacs_source_has_flag(mc, si, CA_INVITE))
5252 {
5353- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
5353+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
5454 return;
5555 }
56565757 if (!mc->chan)
5858 {
5959- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), mc->name);
5959+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, mc->name);
6060 return;
6161 }
6262
+5-5
modules/chanserv/kick.c
···3030 mc = mychan_find(chan);
3131 if (!mc)
3232 {
3333- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
3333+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
3434 return;
3535 }
36363737 if (!chanacs_source_has_flag(mc, si, CA_REMOVE))
3838 {
3939- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
3939+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4040 return;
4141 }
42424343 if (metadata_find(mc, "private:close:closer"))
4444 {
4545- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
4545+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
4646 return;
4747 }
4848···103103 mc = mychan_find(chan);
104104 if (!mc)
105105 {
106106- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
106106+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
107107 return;
108108 }
109109110110 if (!chanacs_source_has_flag(mc, si, CA_REMOVE))
111111 {
112112- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
112112+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
113113 return;
114114 }
115115
+1-1
modules/chanserv/mark.c
···32323333 if (!(mc = mychan_find(target)))
3434 {
3535- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), target);
3535+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
3636 return;
3737 }
3838
+3-3
modules/chanserv/op.c
···2727 mc = mychan_find(chan);
2828 if (!mc)
2929 {
3030- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
3030+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
3131 return;
3232 }
33333434 if (metadata_find(mc, "private:close:closer"))
3535 {
3636- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
3636+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
3737 return;
3838 }
3939···6969 // SECURE check; we can skip this if deopping or sender == target, because we already verified
7070 if (op && (si->su != tu) && (mc->flags & MC_SECURE) && !chanacs_user_has_flag(mc, tu, CA_OP) && !chanacs_user_has_flag(mc, tu, CA_AUTOOP))
7171 {
7272- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
7272+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
7373 command_fail(si, fault_noprivs, _("\2%s\2 has the SECURE option enabled, and \2%s\2 does not have appropriate access."), mc->name, tu->nick);
7474 continue;
7575 }
+4-4
modules/chanserv/owner.c
···3333 mc = mychan_find(chan);
3434 if (!mc)
3535 {
3636- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
3636+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
3737 return;
3838 }
39394040 if (!chanacs_source_has_flag(mc, si, CA_USEOWNER))
4141 {
4242- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4242+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4343 return;
4444 }
45454646 if (metadata_find(mc, "private:close:closer"))
4747 {
4848- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
4848+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
4949 return;
5050 }
5151···7272 // SECURE check; we can skip this if deownering or sender == target, because we already verified
7373 if (owner && (si->su != tu) && (mc->flags & MC_SECURE) && !chanacs_user_has_flag(mc, tu, CA_OP) && !chanacs_user_has_flag(mc, tu, CA_AUTOOP))
7474 {
7575- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
7575+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
7676 command_fail(si, fault_noprivs, _("\2%s\2 has the SECURE option enabled, and \2%s\2 does not have appropriate access."), mc->name, tu->nick);
7777 continue;
7878 }
+4-4
modules/chanserv/protect.c
···3333 mc = mychan_find(chan);
3434 if (!mc)
3535 {
3636- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
3636+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
3737 return;
3838 }
39394040 if (!chanacs_source_has_flag(mc, si, CA_USEPROTECT))
4141 {
4242- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4242+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4343 return;
4444 }
45454646 if (metadata_find(mc, "private:close:closer"))
4747 {
4848- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
4848+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
4949 return;
5050 }
5151···7272 // SECURE check; we can skip this if deprotecting or sender == target, because we already verified
7373 if (protect && (si->su != tu) && (mc->flags & MC_SECURE) && !chanacs_user_has_flag(mc, tu, CA_OP) && !chanacs_user_has_flag(mc, tu, CA_AUTOOP))
7474 {
7575- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
7575+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
7676 command_fail(si, fault_noprivs, _("\2%s\2 has the SECURE option enabled, and \2%s\2 does not have appropriate access."), mc->name, tu->nick);
7777 continue;
7878 }
+8-8
modules/chanserv/quiet.c
···119119 flag = 0;
120120 if (flag != 0 && !chanacs_source_has_flag(mc, si, flag))
121121 {
122122- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
122122+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
123123 return DEVOICE_FAILED;
124124 }
125125···274274275275 if (!mc)
276276 {
277277- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
277277+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
278278 return;
279279 }
280280281281 if (!c)
282282 {
283283- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel);
283283+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel);
284284 return;
285285 }
286286287287 if (!chanacs_source_has_flag(mc, si, CA_REMOVE))
288288 {
289289- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
289289+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
290290 return;
291291 }
292292293293 if (metadata_find(mc, "private:close:closer"))
294294 {
295295- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), channel);
295295+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, channel);
296296 return;
297297 }
298298···383383384384 if (!mc)
385385 {
386386- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
386386+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
387387 return;
388388 }
389389390390 if (!c)
391391 {
392392- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel);
392392+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel);
393393 return;
394394 }
395395···398398 !chanacs_source_has_flag(mc, si, CA_EXEMPT) ||
399399 irccasecmp(target, si->su->nick)))
400400 {
401401- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
401401+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
402402 return;
403403 }
404404
+4-4
modules/chanserv/recover.c
···32323333 if (!(mc = mychan_find(name)))
3434 {
3535- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), name);
3535+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name);
3636 return;
3737 }
38383939 if (metadata_find(mc, "private:close:closer"))
4040 {
4141- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), name);
4141+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, name);
4242 return;
4343 }
44444545 if (!chanacs_source_has_flag(mc, si, CA_RECOVER))
4646 {
4747- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4747+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4848 return;
4949 }
5050···5858 }
5959 if (!mc->chan)
6060 {
6161- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), name);
6161+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, name);
6262 return;
6363 }
6464 }
+2-2
modules/chanserv/set_email.c
···20202121 if (!(mc = mychan_find(parv[0])))
2222 {
2323- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2323+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2424 return;
2525 }
26262727 if (!chanacs_source_has_flag(mc, si, CA_SET))
2828 {
2929- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
2929+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3030 return;
3131 }
3232
+2-2
modules/chanserv/set_entrymsg.c
···19192020 if (!(mc = mychan_find(parv[0])))
2121 {
2222- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2222+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2323 return;
2424 }
25252626 if (!chanacs_source_has_flag(mc, si, CA_SET))
2727 {
2828- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
2828+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
2929 return;
3030 }
3131
+2-2
modules/chanserv/set_fantasy.c
···19192020 if (!(mc = mychan_find(parv[0])))
2121 {
2222- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2222+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2323 return;
2424 }
2525···31313232 if (!chanacs_source_has_flag(mc, si, CA_SET))
3333 {
3434- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
3434+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3535 return;
3636 }
3737
+3-3
modules/chanserv/set_founder.c
···37373838 if (!si->smu)
3939 {
4040- command_fail(si, fault_noprivs, _("You are not logged in."));
4040+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
4141 return;
4242 }
4343···49495050 if (!(mt = myentity_find_ext(newfounder)))
5151 {
5252- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), newfounder);
5252+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, newfounder);
5353 return;
5454 }
5555 if (!isuser(mt))
···60606161 if (!(mc = mychan_find(parv[0])))
6262 {
6363- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
6363+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
6464 return;
6565 }
6666
+2-2
modules/chanserv/set_gameserv.c
···21212222 if (!(mc = mychan_find(parv[0])))
2323 {
2424- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2424+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2525 return;
2626 }
2727···33333434 if (!chanacs_source_has_flag(mc, si, CA_SET))
3535 {
3636- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
3636+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3737 return;
3838 }
3939
+2-2
modules/chanserv/set_guard.c
···19192020 if (!(mc = mychan_find(parv[0])))
2121 {
2222- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2222+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2323 return;
2424 }
2525···31313232 if (!chanacs_source_has_flag(mc, si, CA_SET))
3333 {
3434- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
3434+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3535 return;
3636 }
3737
+2-2
modules/chanserv/set_keeptopic.c
···19192020 if (!(mc = mychan_find(parv[0])))
2121 {
2222- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2222+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2323 return;
2424 }
2525···31313232 if (!chanacs_source_has_flag(mc, si, CA_SET))
3333 {
3434- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
3434+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3535 return;
3636 }
3737
+2-2
modules/chanserv/set_limitflags.c
···19192020 if (!(mc = mychan_find(parv[0])))
2121 {
2222- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2222+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2323 return;
2424 }
2525···31313232 if ((chanacs_source_flags(mc, si) & CA_HIGHPRIVS) != CA_HIGHPRIVS)
3333 {
3434- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
3434+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3535 return;
3636 }
3737
+2-2
modules/chanserv/set_mlock.c
···34343535 if (!(mc = mychan_find(parv[0])))
3636 {
3737- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
3737+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
3838 return;
3939 }
4040···4444 !has_priv(si, PRIV_CHAN_CMODES) ||
4545 !has_priv(si, PRIV_CHAN_ADMIN))
4646 {
4747- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
4747+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4848 return;
4949 }
5050 mask = ~ircd->oper_only_modes;
+2-2
modules/chanserv/set_prefix.c
···34343535 if (!(mc = mychan_find(parv[0])))
3636 {
3737- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
3737+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
3838 return;
3939 }
40404141 if (!chanacs_source_has_flag(mc, si, CA_SET))
4242 {
4343- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
4343+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4444 return;
4545 }
4646
+2-2
modules/chanserv/set_private.c
···19192020 if (!(mc = mychan_find(parv[0])))
2121 {
2222- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2222+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2323 return;
2424 }
2525···31313232 if (!chanacs_source_has_flag(mc, si, CA_SET))
3333 {
3434- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
3434+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3535 return;
3636 }
3737
+2-2
modules/chanserv/set_property.c
···37373838 if (!(mc = mychan_find(parv[0])))
3939 {
4040- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
4040+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
4141 return;
4242 }
43434444 if (!is_founder(mc, entity(si->smu)))
4545 {
4646- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
4646+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4747 return;
4848 }
4949
+2-2
modules/chanserv/set_pubacl.c
···19192020 if (!(mc = mychan_find(parv[0])))
2121 {
2222- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2222+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2323 return;
2424 }
2525···31313232 if (!chanacs_source_has_flag(mc, si, CA_SET))
3333 {
3434- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
3434+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3535 return;
3636 }
3737
+2-2
modules/chanserv/set_restricted.c
···19192020 if (!(mc = mychan_find(parv[0])))
2121 {
2222- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2222+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2323 return;
2424 }
2525···31313232 if (!chanacs_source_has_flag(mc, si, CA_SET))
3333 {
3434- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
3434+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3535 return;
3636 }
3737
+2-2
modules/chanserv/set_secure.c
···19192020 if (!(mc = mychan_find(parv[0])))
2121 {
2222- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2222+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2323 return;
2424 }
2525···31313232 if (!chanacs_source_has_flag(mc, si, CA_SET))
3333 {
3434- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
3434+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3535 return;
3636 }
3737
+2-2
modules/chanserv/set_topiclock.c
···19192020 if (!(mc = mychan_find(parv[0])))
2121 {
2222- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2222+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2323 return;
2424 }
2525···31313232 if (!chanacs_source_has_flag(mc, si, CA_SET))
3333 {
3434- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
3434+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3535 return;
3636 }
3737
+2-2
modules/chanserv/set_url.c
···20202121 if (!(mc = mychan_find(parv[0])))
2222 {
2323- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2323+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2424 return;
2525 }
26262727 if (!chanacs_source_has_flag(mc, si, CA_SET))
2828 {
2929- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
2929+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3030 return;
3131 }
3232
+2-2
modules/chanserv/set_verbose.c
···19192020 if (!(mc = mychan_find(parv[0])))
2121 {
2222- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
2222+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
2323 return;
2424 }
2525···31313232 if (!chanacs_source_has_flag(mc, si, CA_SET))
3333 {
3434- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
3434+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3535 return;
3636 }
3737
+3-3
modules/chanserv/status.c
···27272828 if (!mc)
2929 {
3030- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
3030+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
3131 return;
3232 }
3333···35353636 if (metadata_find(mc, "private:close:closer"))
3737 {
3838- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
3838+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
3939 return;
4040 }
4141···54545555 logcommand(si, CMDLOG_GET, "STATUS");
5656 if (!si->smu)
5757- command_success_nodata(si, _("You are not logged in."));
5757+ command_success_nodata(si, STR_NOT_LOGGED_IN);
5858 else
5959 {
6060 command_success_nodata(si, _("You are logged in as \2%s\2."), entity(si->smu)->name);
+5-5
modules/chanserv/sync.c
···308308309309 if (!(mc = mychan_find(name)))
310310 {
311311- command_fail(si, fault_nosuch_target, "\2%s\2 is not registered.", name);
311311+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name);
312312 return;
313313 }
314314315315 if (metadata_find(mc, "private:close:closer"))
316316 {
317317- command_fail(si, fault_noprivs, "\2%s\2 is closed.", name);
317317+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, name);
318318 return;
319319 }
320320···326326327327 if (!chanacs_source_has_flag(mc, si, CA_RECOVER))
328328 {
329329- command_fail(si, fault_noprivs, "You are not authorized to perform this operation.");
329329+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
330330 return;
331331 }
332332···345345346346 if (!(mc = mychan_find(parv[0])))
347347 {
348348- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
348348+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
349349 return;
350350 }
351351···357357358358 if (!chanacs_source_has_flag(mc, si, CA_SET))
359359 {
360360- command_fail(si, fault_noprivs, _("You are not authorized to perform this command."));
360360+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
361361 return;
362362 }
363363
+6-6
modules/chanserv/template.c
···6464 mc = mychan_find(channel);
6565 if (!mc)
6666 {
6767- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
6767+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
6868 return;
6969 }
7070···7676 operoverride = true;
7777 else
7878 {
7979- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
7979+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
8080 return;
8181 }
8282 }
83838484 if (metadata_find(mc, "private:close:closer") && !has_priv(si, PRIV_CHAN_AUSPEX))
8585 {
8686- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), channel);
8686+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, channel);
8787 return;
8888 }
8989···124124125125 if (!si->smu)
126126 {
127127- command_fail(si, fault_noprivs, _("You are not logged in."));
127127+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
128128 return;
129129 }
130130···136136 {
137137 if (!(restrictflags & CA_FLAGS))
138138 {
139139- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
139139+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
140140 return;
141141 }
142142 restrictflags = allow_flags(mc, restrictflags);
···144144145145 if (metadata_find(mc, "private:close:closer"))
146146 {
147147- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), channel);
147147+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, channel);
148148 return;
149149 }
150150
+16-16
modules/chanserv/topic.c
···2929 mc = mychan_find(chan);
3030 if (!mc)
3131 {
3232- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
3232+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
3333 return;
3434 }
35353636 c = channel_find(chan);
3737 if (!c)
3838 {
3939- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), chan);
3939+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, chan);
4040 return;
4141 }
42424343 if (metadata_find(mc, "private:close:closer"))
4444 {
4545- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
4545+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
4646 return;
4747 }
48484949 if (!chanacs_source_has_flag(mc, si, CA_TOPIC))
5050 {
5151- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
5151+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
5252 return;
5353 }
5454···9494 mc = mychan_find(chan);
9595 if (!mc)
9696 {
9797- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
9797+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
9898 return;
9999 }
100100101101 c = channel_find(chan);
102102 if (!c)
103103 {
104104- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), chan);
104104+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, chan);
105105 return;
106106 }
107107108108 if (!chanacs_source_has_flag(mc, si, CA_TOPIC))
109109 {
110110- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
110110+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
111111 return;
112112 }
113113114114 if (metadata_find(mc, "private:close:closer"))
115115 {
116116- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
116116+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
117117 return;
118118 }
119119···170170 mc = mychan_find(chan);
171171 if (!mc)
172172 {
173173- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
173173+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
174174 return;
175175 }
176176177177 c = channel_find(chan);
178178 if (!c)
179179 {
180180- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), chan);
180180+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, chan);
181181 return;
182182 }
183183184184 if (!chanacs_source_has_flag(mc, si, CA_TOPIC))
185185 {
186186- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
186186+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
187187 return;
188188 }
189189190190 if (metadata_find(mc, "private:close:closer"))
191191 {
192192- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
192192+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
193193 return;
194194 }
195195···265265 mc = mychan_find(chan);
266266 if (!mc)
267267 {
268268- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
268268+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
269269 return;
270270 }
271271272272 c = channel_find(chan);
273273 if (!c)
274274 {
275275- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), chan);
275275+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, chan);
276276 return;
277277 }
278278279279 if (!chanacs_source_has_flag(mc, si, CA_TOPIC))
280280 {
281281- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
281281+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
282282 return;
283283 }
284284285285 if (metadata_find(mc, "private:close:closer"))
286286 {
287287- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
287287+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
288288 return;
289289 }
290290
+5-5
modules/chanserv/unban_self.c
···23232424 if (si->su == NULL)
2525 {
2626- command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "UNBAN");
2626+ command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "UNBAN");
2727 return;
2828 }
2929···45454646 if (!mc)
4747 {
4848- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel);
4848+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel);
4949 return;
5050 }
51515252 if (!c)
5353 {
5454- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel);
5454+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel);
5555 return;
5656 }
57575858 if (!si->smu)
5959 {
6060- command_fail(si, fault_noprivs, _("You are not logged in."));
6060+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
6161 return;
6262 }
63636464 if (!chanacs_source_has_flag(mc, si, CA_REMOVE) &&
6565 !chanacs_source_has_flag(mc, si, CA_EXEMPT))
6666 {
6767- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
6767+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
6868 return;
6969 }
7070
+2-2
modules/chanserv/voice.c
···2727 mc = mychan_find(chan);
2828 if (!mc)
2929 {
3030- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
3030+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
3131 return;
3232 }
33333434 if (metadata_find(mc, "private:close:closer"))
3535 {
3636- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
3636+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
3737 return;
3838 }
3939
+3-3
modules/chanserv/why.c
···48484949 if (mc == NULL)
5050 {
5151- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."),
5151+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED,
5252 chan);
5353 return;
5454 }
···5959 operoverride = true;
6060 else
6161 {
6262- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
6262+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
6363 return;
6464 }
6565 }
66666767 if (metadata_find(mc, "private:close:closer"))
6868 {
6969- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
6969+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
7070 return;
7171 }
7272
+11-11
modules/chanserv/xop.c
···274274 // if they're opers and just want to LIST, they don't have to log in
275275 if (!(has_priv(si, PRIV_CHAN_AUSPEX) && !strcasecmp("LIST", cmd)))
276276 {
277277- command_fail(si, fault_noprivs, _("You are not logged in."));
277277+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
278278 return;
279279 }
280280 }
···282282 mc = mychan_find(chan);
283283 if (!mc)
284284 {
285285- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
285285+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
286286 return;
287287 }
288288289289 if (metadata_find(mc, "private:close:closer") && (!has_priv(si, PRIV_CHAN_AUSPEX) || strcasecmp("LIST", cmd)))
290290 {
291291- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
291291+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
292292 return;
293293 }
294294···313313 * possible future denial of granting +f */
314314 if (!(restrictflags & CA_FLAGS))
315315 {
316316- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
316316+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
317317 return;
318318 }
319319 restrictflags = allow_flags(mc, restrictflags);
320320 if ((restrictflags & level) != level)
321321 {
322322- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
322322+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
323323 return;
324324 }
325325 cs_xop_do_add(si, mc, mt, uname, level, leveldesc, restrictflags);
···338338 * possible future denial of granting +f */
339339 if (!(restrictflags & CA_FLAGS))
340340 {
341341- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
341341+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
342342 return;
343343 }
344344 restrictflags = allow_flags(mc, restrictflags);
345345 if ((restrictflags & level) != level)
346346 {
347347- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
347347+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
348348 return;
349349 }
350350 cs_xop_do_del(si, mc, mt, uname, level, leveldesc);
···358358 operoverride = true;
359359 else
360360 {
361361- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
361361+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
362362 return;
363363 }
364364 }
···418418419419 if (!mc)
420420 {
421421- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
421421+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
422422 return;
423423 }
424424425425 if (metadata_find(mc, "private:close:closer"))
426426 {
427427- command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan);
427427+ command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan);
428428 return;
429429 }
430430431431 if (!is_founder(mc, entity(si->smu)))
432432 {
433433- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
433433+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
434434 return;
435435 }
436436
+3-3
modules/gameserv/gameserv_common.h
···5151 mc = mychan_find((*parv)[0]);
5252 if (mc == NULL)
5353 {
5454- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), (*parv)[0]);
5454+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, (*parv)[0]);
5555 return false;
5656 }
5757 if (mc->chan == NULL)
5858 {
5959- command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), mc->name);
5959+ command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, mc->name);
6060 return false;
6161 }
6262 if (module_find_published("chanserv/set_gameserv"))
···9292 }
9393 if (!allow)
9494 {
9595- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
9595+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
9696 return false;
9797 }
9898 }
+1-1
modules/groupserv/drop.c
···40404141 if (! groupacs_sourceinfo_has_flag(mg, si, GA_FOUNDER))
4242 {
4343- (void) command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
4343+ (void) command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4444 return;
4545 }
4646
+1-1
modules/groupserv/fflags.c
···34343535 if (si->smu == NULL)
3636 {
3737- command_fail(si, fault_noprivs, _("You are not logged in."));
3737+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
3838 return;
3939 }
4040
+3-3
modules/groupserv/flags.c
···4141 operoverride = true;
4242 else
4343 {
4444- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4444+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4545 return;
4646 }
4747 }
···7777 // simple check since it's already checked above
7878 if (operoverride)
7979 {
8080- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
8080+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
8181 return;
8282 }
8383···129129 }
130130 else if ((oldflags & GA_FOUNDER) && !(flags & GA_FOUNDER) && !(groupacs_sourceinfo_flags(mg, si) & GA_FOUNDER))
131131 {
132132- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
132132+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
133133 return;
134134 }
135135
+1-1
modules/groupserv/invite.c
···38383939 if (!groupacs_sourceinfo_has_flag(mg, si, GA_INVITE))
4040 {
4141- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4141+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4242 return;
4343 }
4444
+1-1
modules/groupserv/join.c
···47474848 if (groupacs_sourceinfo_has_flag(mg, si, GA_BAN))
4949 {
5050- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
5050+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
5151 return;
5252 }
5353
+1-1
modules/groupserv/listchans.c
···4141 operoverride = true;
4242 else
4343 {
4444- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
4444+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4545 return;
4646 }
4747 }
+1-1
modules/groupserv/set_channel.c
···24242525 if (!groupacs_sourceinfo_has_flag(mg, si, GA_SET))
2626 {
2727- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
2727+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
2828 return;
2929 }
3030
+1-1
modules/groupserv/set_description.c
···24242525 if (!groupacs_sourceinfo_has_flag(mg, si, GA_SET))
2626 {
2727- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
2727+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
2828 return;
2929 }
3030
+1-1
modules/groupserv/set_email.c
···24242525 if (!groupacs_sourceinfo_has_flag(mg, si, GA_SET))
2626 {
2727- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
2727+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
2828 return;
2929 }
3030
+1-1
modules/groupserv/set_groupname.c
···43434444 if (!groupacs_sourceinfo_has_flag(mg, si, GA_FOUNDER))
4545 {
4646- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
4646+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4747 return;
4848 }
4949
+1-1
modules/groupserv/set_joinflags.c
···25252626 if (!groupacs_sourceinfo_has_flag(mg, si, GA_SET))
2727 {
2828- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
2828+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
2929 return;
3030 }
3131
+1-1
modules/groupserv/set_open.c
···30303131 if (!groupacs_sourceinfo_has_flag(mg, si, GA_FOUNDER))
3232 {
3333- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
3333+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3434 return;
3535 }
3636
+1-1
modules/groupserv/set_public.c
···30303131 if (!groupacs_sourceinfo_has_flag(mg, si, GA_FOUNDER))
3232 {
3333- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
3333+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
3434 return;
3535 }
3636
+1-1
modules/groupserv/set_url.c
···24242525 if (!groupacs_sourceinfo_has_flag(mg, si, GA_SET))
2626 {
2727- command_fail(si, fault_noprivs, _("You are not authorized to execute this command."));
2727+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
2828 return;
2929 }
3030
+2-2
modules/hostserv/drop.c
···2121 // This is only because we need a nick to copy from.
2222 if (si->su == NULL)
2323 {
2424- command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "DROP");
2424+ command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "DROP");
2525 return;
2626 }
27272828 mn = mynick_find(si->su->nick);
2929 if (mn == NULL)
3030 {
3131- command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), si->su->nick);
3131+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, si->su->nick);
3232 return;
3333 }
3434 if (mn->owner != si->smu)
+2-2
modules/hostserv/group.c
···2020 // This is only because we need a nick to copy from.
2121 if (si->su == NULL)
2222 {
2323- command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "GROUP");
2323+ command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "GROUP");
2424 return;
2525 }
26262727 mn = mynick_find(si->su->nick);
2828 if (mn == NULL)
2929 {
3030- command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), si->su->nick);
3030+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, si->su->nick);
3131 return;
3232 }
3333 if (mn->owner != si->smu)
+1-1
modules/hostserv/offer.c
···148148149149 if (si->smu == NULL)
150150 {
151151- command_fail(si, fault_noprivs, _("You are not logged in."));
151151+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
152152 return;
153153 }
154154
+4-4
modules/hostserv/onoff.c
···19192020 if (si->su == NULL)
2121 {
2222- command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "ON");
2222+ command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "ON");
2323 return;
2424 }
25252626 mn = mynick_find(si->su->nick);
2727 if (mn == NULL)
2828 {
2929- command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), si->su->nick);
2929+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, si->su->nick);
3030 return;
3131 }
3232 if (mn->owner != si->smu && !myuser_access_verify(si->su, mn->owner))
···56565757 if (si->su == NULL)
5858 {
5959- command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "OFF");
5959+ command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "OFF");
6060 return;
6161 }
62626363 mn = mynick_find(si->su->nick);
6464 if (mn == NULL)
6565 {
6666- command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), si->su->nick);
6666+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, si->su->nick);
6767 return;
6868 }
6969 if (mn->owner != si->smu && !myuser_access_verify(si->su, mn->owner))
+1-1
modules/hostserv/request.c
···225225 mn = mynick_find(target);
226226 if (mn == NULL)
227227 {
228228- command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), target);
228228+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
229229 return;
230230 }
231231 if (mn->owner != si->smu)
+1-1
modules/hostserv/vhost.c
···2828 // find the user...
2929 if (!(mu = myuser_find_ext(target)))
3030 {
3131- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
3131+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
3232 return;
3333 }
3434
+1-1
modules/hostserv/vhostnick.c
···3333 // find the user...
3434 if (!(mu = myuser_find_ext(target)))
3535 {
3636- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
3636+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
3737 return;
3838 }
3939
+1-1
modules/infoserv/main.c
···247247 // make sure they're logged in
248248 if (!si->smu)
249249 {
250250- command_fail(si, fault_noprivs, _("You are not logged in."));
250250+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
251251 return;
252252 }
253253
+1-1
modules/memoserv/forward.c
···4747 // Check to see if target user exists
4848 if (!(tmu = myuser_find_ext(target)))
4949 {
5050- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
5050+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
5151 return;
5252 }
5353
+1-1
modules/memoserv/ignore.c
···5252 // Does the target account exist?
5353 if (!(tmu = myuser_find_ext(parv[0])))
5454 {
5555- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), parv[0]);
5555+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
5656 return;
5757 }
5858 newnick = entity(tmu)->name;
+1-1
modules/memoserv/send.c
···8181 if (!(tmu = myuser_find_ext(target)))
8282 {
8383 command_fail(si, fault_nosuch_target,
8484- "\2%s\2 is not registered.", target);
8484+ STR_IS_NOT_REGISTERED, target);
85858686 return;
8787 }
+1-1
modules/memoserv/sendgroup.c
···7676 mg = group(myentity_find(target));
7777 if (mg == NULL)
7878 {
7979- command_fail(si, fault_nosuch_target, "Group \2%s\2 is not registered.", target);
7979+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
8080 return;
8181 }
8282
+2-2
modules/memoserv/sendops.c
···76767777 if (mc == NULL)
7878 {
7979- command_fail(si, fault_nosuch_target, "Channel \2%s\2 is not registered.", target);
7979+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
8080 return;
8181 }
8282···8686 operoverride = true;
8787 else
8888 {
8989- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
8989+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
9090 return;
9191 }
9292 }
+4-4
modules/nickserv/access.c
···196196 mu = si->smu;
197197 if (mu == NULL)
198198 {
199199- command_fail(si, fault_noprivs, _("You are not logged in."));
199199+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
200200 return;
201201 }
202202 }
···210210211211 if (!(mu = myuser_find_ext(parv[1])))
212212 {
213213- command_fail(si, fault_badparams, _("\2%s\2 is not registered."), parv[1]);
213213+ command_fail(si, fault_badparams, STR_IS_NOT_REGISTERED, parv[1]);
214214 return;
215215 }
216216 }
···248248 mask = parv[1];
249249 if (mu == NULL)
250250 {
251251- command_fail(si, fault_noprivs, _("You are not logged in."));
251251+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
252252 return;
253253 }
254254 if (mask[0] == '*' && mask[1] == '!')
···381381 mu = si->smu;
382382 if (mu == NULL)
383383 {
384384- command_fail(si, fault_noprivs, _("You are not logged in."));
384384+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
385385 return;
386386 }
387387 if ((mask = myuser_access_find(mu, parv[1])) == NULL)
+1-1
modules/nickserv/badmail.c
···105105106106 if (si->smu == NULL)
107107 {
108108- command_fail(si, fault_noprivs, _("You are not logged in."));
108108+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
109109 return;
110110 }
111111
+6-6
modules/nickserv/cert.c
···3131 mu = si->smu;
3232 if (mu == NULL)
3333 {
3434- command_fail(si, fault_noprivs, _("You are not logged in."));
3434+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
3535 return;
3636 }
3737 }
···45454646 if (!(mu = myuser_find_ext(parv[1])))
4747 {
4848- command_fail(si, fault_badparams, _("\2%s\2 is not registered."), parv[1]);
4848+ command_fail(si, fault_badparams, STR_IS_NOT_REGISTERED, parv[1]);
4949 return;
5050 }
5151 }
···7373 mu = si->smu;
7474 if (mu == NULL)
7575 {
7676- command_fail(si, fault_noprivs, _("You are not logged in."));
7676+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
7777 return;
7878 }
7979 }
···87878888 if (!(mu = myuser_find_ext(parv[1])))
8989 {
9090- command_fail(si, fault_badparams, _("\2%s\2 is not registered."), parv[1]);
9090+ command_fail(si, fault_badparams, STR_IS_NOT_REGISTERED, parv[1]);
9191 return;
9292 }
9393 }
···128128129129 if (mu == NULL)
130130 {
131131- command_fail(si, fault_noprivs, _("You are not logged in."));
131131+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
132132 return;
133133 }
134134···164164 mu = si->smu;
165165 if (mu == NULL)
166166 {
167167- command_fail(si, fault_noprivs, _("You are not logged in."));
167167+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
168168 return;
169169 }
170170 cert = mycertfp_find(parv[1]);
···33333434 if (mu == NULL)
3535 {
3636- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
3636+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
3737 return;
3838 }
3939 }
···4242 mu = si->smu;
4343 if (mu == NULL)
4444 {
4545- command_fail(si, fault_noprivs, _("You are not logged in."));
4545+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
4646 return;
4747 }
4848 }
+2-2
modules/nickserv/listgroups.c
···33333434 if (mu == NULL)
3535 {
3636- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
3636+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
3737 return;
3838 }
3939 }
···4242 mu = si->smu;
4343 if (mu == NULL)
4444 {
4545- command_fail(si, fault_noprivs, _("You are not logged in."));
4545+ command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN);
4646 return;
4747 }
4848 }
+1-1
modules/nickserv/logout.c
···20202121 if ((!si->smu) && (!user || !pass))
2222 {
2323- command_fail(si, fault_nochange, _("You are not logged in."));
2323+ command_fail(si, fault_nochange, STR_NOT_LOGGED_IN);
2424 return;
2525 }
2626
+1-1
modules/nickserv/mark.c
···6464 command_success_nodata(si, _("\2%s\2 is now unmarked."), target);
6565 return;
6666 }
6767- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
6767+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
6868 return;
6969 }
7070
+1-1
modules/nickserv/multimark.c
···769769770770 if (!(mu = myuser_find_ext(target)) && strcasecmp(action, "LIST"))
771771 {
772772- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
772772+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
773773 return;
774774 }
775775
+1-1
modules/nickserv/regnolimit.c
···35353636 if (!(mu = myuser_find_ext(target)))
3737 {
3838- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
3838+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
3939 return;
4040 }
4141
+1-1
modules/nickserv/resetpass.c
···26262727 if (!(mu = myuser_find_by_nick(name)))
2828 {
2929- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), name);
2929+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name);
3030 return;
3131 }
3232
+1-1
modules/nickserv/restrict.c
···78787979 if (!(mu = myuser_find_ext(target)))
8080 {
8181- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
8181+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
8282 return;
8383 }
8484
+1-1
modules/nickserv/return.c
···29293030 if (!(mu = myuser_find(target)))
3131 {
3232- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
3232+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
3333 return;
3434 }
3535
+1-1
modules/nickserv/sendpass.c
···52525353 if (!(mu = myuser_find_by_nick(name)))
5454 {
5555- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), name);
5555+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name);
5656 return;
5757 }
5858
+2-2
modules/nickserv/sendpass_user.c
···3636 {
3737 if (!has_priv(si, PRIV_USER_SENDPASS))
3838 {
3939- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
3939+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4040 return;
4141 }
4242 else if (!strcasecmp(parv[1], "FORCE"))
···53535454 if (!(mu = myuser_find_by_nick(name)))
5555 {
5656- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), name);
5656+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name);
5757 return;
5858 }
5959
+1-1
modules/nickserv/set_accountname.c
···4242 mn = mynick_find(newname);
4343 if (mn == NULL)
4444 {
4545- command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), newname);
4545+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, newname);
4646 return;
4747 }
4848 if (mn->owner != si->smu)
+1-1
modules/nickserv/setpass.c
···34343535 if (!(mu = myuser_find(nick)))
3636 {
3737- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), nick);
3737+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, nick);
3838 return;
3939 }
4040
+1-1
modules/nickserv/status.c
···7373 logcommand(si, CMDLOG_GET, "STATUS");
74747575 if (!si->smu)
7676- command_success_nodata(si, _("You are not logged in."));
7676+ command_success_nodata(si, STR_NOT_LOGGED_IN);
7777 else
7878 {
7979 command_success_nodata(si, _("You are logged in as \2%s\2."), entity(si->smu)->name);
+1-1
modules/nickserv/taxonomy.c
···29293030 if (!(mu = myuser_find_ext(target)))
3131 {
3232- command_fail(si, fault_badparams, _("\2%s\2 is not registered."), target);
3232+ command_fail(si, fault_badparams, STR_IS_NOT_REGISTERED, target);
3333 return;
3434 }
3535
+2-2
modules/nickserv/verify.c
···29293030 if (!(mu = myuser_find(nick)))
3131 {
3232- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), nick);
3232+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, nick);
3333 return;
3434 }
3535···147147148148 if (!(mu = myuser_find_ext(nick)))
149149 {
150150- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), nick);
150150+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, nick);
151151 return;
152152 }
153153
+1-1
modules/nickserv/vhost.c
···5656 // find the user...
5757 if (!(mu = myuser_find_ext(target)))
5858 {
5959- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target);
5959+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target);
6060 return;
6161 }
6262
+1-1
modules/operserv/identify.c
···2525 // XXX use this with authcookie also
2626 if (si->su == NULL)
2727 {
2828- command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "IDENTIFY");
2828+ command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "IDENTIFY");
2929 return;
3030 }
3131
+4-4
modules/operserv/soper.c
···1616{
1717 if (! has_any_privs(si))
1818 {
1919- (void) command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
1919+ (void) command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
2020 return;
2121 }
2222···9393 mu = myuser_find_ext(parv[0]);
9494 if (mu == NULL)
9595 {
9696- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), parv[0]);
9696+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
9797 return;
9898 }
9999···162162 mu = myuser_find_ext(parv[0]);
163163 if (mu == NULL)
164164 {
165165- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), parv[0]);
165165+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
166166 return;
167167 }
168168···208208 mu = myuser_find_ext(parv[0]);
209209 if (mu == NULL)
210210 {
211211- command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), parv[0]);
211211+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
212212 return;
213213 }
214214
+2-2
modules/rpgserv/enable.c
···2626 mc = mychan_find(chan);
2727 if (!mc)
2828 {
2929- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
2929+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
3030 return;
3131 }
3232···5757 mc = mychan_find(chan);
5858 if (!mc)
5959 {
6060- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
6060+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
6161 return;
6262 }
6363
+1-1
modules/rpgserv/info.c
···2727 mc = mychan_find(parv[0]);
2828 if (!mc)
2929 {
3030- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]);
3030+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]);
3131 return;
3232 }
3333
+2-2
modules/rpgserv/set.c
···180180 mc = mychan_find(chan);
181181 if (!mc)
182182 {
183183- command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan);
183183+ command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan);
184184 return;
185185 }
186186187187 if (!chanacs_source_has_flag(mc, si, CA_SET))
188188 {
189189- command_fail(si, fault_noprivs, _("You are not authorized to perform this operation."));
189189+ command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
190190 return;
191191 }
192192
+1-1
modules/statserv/channel.c
···45454646 if (c->modes & CMODE_SEC)
4747 {
4848- (void) command_fail(si, fault_noprivs, _("You are not authorised to perform this action."));
4848+ (void) command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED);
4949 return;
5050 }
5151