[READ-ONLY] Mirror of https://github.com/VibeDevelopers/atheme. Modified fork of atheme IRC Services www.vibetalk.net/
0

Configure Feed

Select the types of activity you want to include in your feed.

libathemecore, modules/: consolidate massively-duplicated strings

Aaron Jones (Apr 13, 2019, 3:07 PM UTC) 1afebdd1 c40284ac

+344 -451
+2 -2
libathemecore/commandtree.c
··· 132 132 /* Make this look a bit more expected for normal users */ 133 133 if (si->smu == NULL && c->access != NULL && !strcasecmp(c->access, AC_AUTHENTICATED)) 134 134 { 135 - command_fail(si, fault_noprivs, _("You are not logged in.")); 135 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 136 136 language_set_active(NULL); 137 137 return; 138 138 } ··· 167 167 command_fail(si, fault_noprivs, STR_NO_PRIVILEGE, accessbuf); 168 168 } 169 169 else 170 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 170 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 171 171 /* logcommand(si, CMDLOG_ADMIN, "DENIED COMMAND: \2%s\2 used \2%s\2 \2%s\2", origin, svs->name, cmd); */ 172 172 if (si->smu != NULL) 173 173 language_set_active(NULL);
-1
po/POTFILES.in
··· 1 1 # Please don't update this file manually - use 'make update-potfiles' instead! 2 2 include/atheme/constants.h 3 3 libathemecore/commandhelp.c 4 - libathemecore/commandtree.c 5 4 libathemecore/ptasks.c 6 5 libathemecore/services.c 7 6 modules/alis/main.c
+10 -122
po/atheme.pot
··· 13 13 msgstr "" 14 14 "Project-Id-Version: Atheme IRC Services 7.3.0-rc2\n" 15 15 "Report-Msgid-Bugs-To: <https://github.com/atheme/atheme/issues/>\n" 16 - "POT-Creation-Date: 2019-04-13 11:27+0000\n" 16 + "POT-Creation-Date: 2019-04-13 14:20+0000\n" 17 17 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 18 18 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 19 19 "Language-Team: LANGUAGE <LL@li.org>\n" ··· 173 173 msgid "%s can now take ownership of %s." 174 174 msgstr "" 175 175 176 - #: modules/chanserv/invite.c:21 modules/chanserv/unban_self.c:26 modules/hostserv/drop.c:24 177 - #: modules/hostserv/group.c:23 modules/hostserv/onoff.c:22 modules/hostserv/onoff.c:59 modules/nickserv/group.c:21 178 - #: modules/nickserv/identify.c:35 modules/operserv/identify.c:28 176 + #: include/atheme/constants.h:80 179 177 #, c-format 180 178 msgid "%s can only be executed via IRC." 181 179 msgstr "" ··· 594 592 msgid "%s is an invalid username." 595 593 msgstr "" 596 594 597 - #: modules/chanserv/akick.c:229 modules/chanserv/akick.c:494 modules/chanserv/akick.c:631 modules/chanserv/ban.c:49 598 - #: modules/chanserv/clear_bans.c:64 modules/chanserv/clear_users.c:51 modules/chanserv/count.c:52 599 - #: modules/chanserv/flags.c:189 modules/chanserv/getkey.c:34 modules/chanserv/halfop.c:48 600 - #: modules/chanserv/invite.c:47 modules/chanserv/kick.c:45 modules/chanserv/op.c:36 modules/chanserv/owner.c:48 601 - #: modules/chanserv/protect.c:48 modules/chanserv/quiet.c:295 modules/chanserv/recover.c:41 602 - #: modules/chanserv/status.c:38 modules/chanserv/template.c:86 modules/chanserv/template.c:147 603 - #: modules/chanserv/topic.c:45 modules/chanserv/topic.c:116 modules/chanserv/topic.c:192 604 - #: modules/chanserv/topic.c:287 modules/chanserv/voice.c:36 modules/chanserv/why.c:69 modules/chanserv/xop.c:291 605 - #: modules/chanserv/xop.c:427 595 + #: include/atheme/constants.h:76 606 596 #, c-format 607 597 msgid "%s is closed." 608 598 msgstr "" ··· 612 602 msgid "%s is closed; it cannot be transferred." 613 603 msgstr "" 614 604 615 - #: modules/botserv/bottalk.c:41 modules/botserv/bottalk.c:108 modules/chanserv/ban.c:37 modules/chanserv/ban.c:122 616 - #: modules/chanserv/clear_bans.c:52 modules/chanserv/clear_users.c:39 modules/chanserv/getkey.c:46 617 - #: modules/chanserv/invite.c:59 modules/chanserv/quiet.c:283 modules/chanserv/quiet.c:392 618 - #: modules/chanserv/recover.c:61 modules/chanserv/topic.c:39 modules/chanserv/topic.c:104 619 - #: modules/chanserv/topic.c:180 modules/chanserv/topic.c:275 modules/chanserv/unban_self.c:54 620 - #: modules/gameserv/gameserv_common.h:59 605 + #: include/atheme/constants.h:77 621 606 #, c-format 622 607 msgid "%s is currently empty." 623 608 msgstr "" ··· 863 848 msgid "%s is not registered, and was not marked." 864 849 msgstr "" 865 850 866 - #: modules/botserv/main.c:797 modules/botserv/main.c:873 modules/chanserv/access.c:572 modules/chanserv/access.c:675 867 - #: modules/chanserv/access.c:780 modules/chanserv/access.c:929 modules/chanserv/fflags.c:67 868 - #: modules/chanserv/flags.c:301 modules/chanserv/flags.c:375 modules/chanserv/ftransfer.c:32 869 - #: modules/chanserv/set_founder.c:52 modules/hostserv/vhost.c:31 modules/hostserv/vhostnick.c:36 870 - #: modules/memoserv/forward.c:50 modules/memoserv/ignore.c:55 modules/nickserv/access.c:213 871 - #: modules/nickserv/cert.c:48 modules/nickserv/cert.c:90 modules/nickserv/drop.c:42 modules/nickserv/drop.c:155 872 - #: modules/nickserv/freeze.c:59 modules/nickserv/hold.c:38 modules/nickserv/info.c:83 873 - #: modules/nickserv/listchans.c:36 modules/nickserv/listgroups.c:36 modules/nickserv/mark.c:67 874 - #: modules/nickserv/multimark.c:772 modules/nickserv/regnolimit.c:38 modules/nickserv/resetpass.c:29 875 - #: modules/nickserv/restrict.c:81 modules/nickserv/return.c:32 modules/nickserv/sendpass.c:55 876 - #: modules/nickserv/sendpass_user.c:56 modules/nickserv/setpass.c:37 modules/nickserv/taxonomy.c:32 877 - #: modules/nickserv/verify.c:32 modules/nickserv/verify.c:150 modules/nickserv/vhost.c:59 878 - #: modules/operserv/soper.c:96 modules/operserv/soper.c:165 modules/operserv/soper.c:211 851 + #: include/atheme/constants.h:81 879 852 #, c-format 880 853 msgid "%s is not registered." 881 854 msgstr "" ··· 2294 2267 msgid "Channel %s does not have RPGServ enabled." 2295 2268 msgstr "" 2296 2269 2297 - #: modules/botserv/bottalk.c:35 modules/botserv/bottalk.c:102 modules/botserv/set_fantasy.c:33 2298 - #: modules/botserv/set_nobot.c:33 modules/botserv/set_saycaller.c:32 modules/chanserv/access.c:472 2299 - #: modules/chanserv/access.c:544 modules/chanserv/access.c:647 modules/chanserv/access.c:754 2300 - #: modules/chanserv/access.c:903 modules/chanserv/access.c:1047 modules/chanserv/access.c:1087 2301 - #: modules/chanserv/access.c:1178 modules/chanserv/access.c:1274 modules/chanserv/akick.c:223 2302 - #: modules/chanserv/akick.c:488 modules/chanserv/akick.c:625 modules/chanserv/antiflood.c:392 2303 - #: modules/chanserv/ban.c:31 modules/chanserv/ban.c:116 modules/chanserv/clear_bans.c:46 2304 - #: modules/chanserv/clear_users.c:33 modules/chanserv/close.c:63 modules/chanserv/count.c:35 2305 - #: modules/chanserv/drop.c:36 modules/chanserv/drop.c:132 modules/chanserv/fflags.c:35 modules/chanserv/flags.c:183 2306 - #: modules/chanserv/ftransfer.c:44 modules/chanserv/getkey.c:28 modules/chanserv/halfop.c:36 2307 - #: modules/chanserv/hold.c:34 modules/chanserv/info.c:43 modules/chanserv/invite.c:41 modules/chanserv/kick.c:33 2308 - #: modules/chanserv/kick.c:106 modules/chanserv/mark.c:35 modules/chanserv/op.c:30 modules/chanserv/owner.c:36 2309 - #: modules/chanserv/protect.c:36 modules/chanserv/quiet.c:277 modules/chanserv/quiet.c:386 2310 - #: modules/chanserv/recover.c:35 modules/chanserv/set_email.c:23 modules/chanserv/set_entrymsg.c:22 2311 - #: modules/chanserv/set_fantasy.c:22 modules/chanserv/set_founder.c:63 modules/chanserv/set_gameserv.c:24 2312 - #: modules/chanserv/set_guard.c:22 modules/chanserv/set_keeptopic.c:22 modules/chanserv/set_limitflags.c:22 2313 - #: modules/chanserv/set_mlock.c:37 modules/chanserv/set_prefix.c:37 modules/chanserv/set_private.c:22 2314 - #: modules/chanserv/set_property.c:40 modules/chanserv/set_pubacl.c:22 modules/chanserv/set_restricted.c:22 2315 - #: modules/chanserv/set_secure.c:22 modules/chanserv/set_topiclock.c:22 modules/chanserv/set_url.c:23 2316 - #: modules/chanserv/set_verbose.c:22 modules/chanserv/status.c:30 modules/chanserv/sync.c:348 2317 - #: modules/chanserv/template.c:67 modules/chanserv/topic.c:32 modules/chanserv/topic.c:97 2318 - #: modules/chanserv/topic.c:173 modules/chanserv/topic.c:268 modules/chanserv/unban_self.c:48 2319 - #: modules/chanserv/voice.c:30 modules/chanserv/why.c:51 modules/chanserv/xop.c:285 modules/chanserv/xop.c:421 2320 - #: modules/gameserv/gameserv_common.h:54 modules/rpgserv/enable.c:29 modules/rpgserv/enable.c:60 2321 - #: modules/rpgserv/info.c:30 modules/rpgserv/set.c:183 2322 - #, c-format 2323 - msgid "Channel %s is not registered." 2324 - msgstr "" 2325 - 2326 2270 #: modules/chanserv/taxonomy.c:38 2327 2271 #, c-format 2328 2272 msgid "Channel %s is private." ··· 3598 3542 msgid "Inspect the Perl interpreter" 3599 3543 msgstr "" 3600 3544 3601 - #: include/atheme/constants.h:76 3545 + #: include/atheme/constants.h:78 3602 3546 #, c-format 3603 3547 msgid "Insufficient parameters for %s." 3604 3548 msgstr "" ··· 3700 3644 msgid "Invalid option for %s" 3701 3645 msgstr "" 3702 3646 3703 - #: include/atheme/constants.h:77 3647 + #: include/atheme/constants.h:79 3704 3648 #, c-format 3705 3649 msgid "Invalid parameters for %s." 3706 3650 msgstr "" ··· 4377 4321 #: modules/nickserv/group.c:100 modules/nickserv/set_accountname.c:50 4378 4322 #, c-format 4379 4323 msgid "Nick %s is not registered to your account." 4380 - msgstr "" 4381 - 4382 - #: modules/hostserv/drop.c:31 modules/hostserv/group.c:30 modules/hostserv/onoff.c:29 modules/hostserv/onoff.c:66 4383 - #: modules/hostserv/request.c:228 modules/nickserv/group.c:95 modules/nickserv/group.c:136 4384 - #: modules/nickserv/group.c:163 modules/nickserv/set_accountname.c:45 4385 - #, c-format 4386 - msgid "Nick %s is not registered." 4387 4324 msgstr "" 4388 4325 4389 4326 #: modules/nickserv/group.c:71 ··· 8062 7999 msgid "You are not allowed to set %s on template %s in %s." 8063 8000 msgstr "" 8064 8001 8065 - #: modules/statserv/channel.c:48 8066 - msgid "You are not authorised to perform this action." 8067 - msgstr "" 8068 - 8069 8002 #: modules/chanserv/op.c:59 8070 8003 #, c-format 8071 8004 msgid "You are not authorized to (de)op %s on %s." ··· 8086 8019 msgid "You are not authorized to assign the bot %s to a channel." 8087 8020 msgstr "" 8088 8021 8089 - #: modules/chanserv/flags.c:292 modules/chanserv/flags.c:337 modules/chanserv/set_email.c:29 8090 - #: modules/chanserv/set_entrymsg.c:28 modules/chanserv/set_prefix.c:43 modules/chanserv/set_url.c:29 8091 - #: modules/chanserv/template.c:139 modules/groupserv/drop.c:43 modules/groupserv/join.c:50 8092 - #: modules/groupserv/set_channel.c:27 modules/groupserv/set_description.c:27 modules/groupserv/set_email.c:27 8093 - #: modules/groupserv/set_groupname.c:46 modules/groupserv/set_joinflags.c:28 modules/groupserv/set_open.c:33 8094 - #: modules/groupserv/set_public.c:33 modules/groupserv/set_url.c:27 8095 - msgid "You are not authorized to execute this command." 8096 - msgstr "" 8097 - 8098 8022 #: modules/chanserv/xop.c:51 modules/chanserv/xop.c:124 8099 8023 #, c-format 8100 8024 msgid "You are not authorized to modify the access entry for %s on %s." 8101 8025 msgstr "" 8102 8026 8103 - #: modules/chanserv/antiflood.c:400 modules/chanserv/antiflood.c:464 modules/chanserv/set_fantasy.c:34 8104 - #: modules/chanserv/set_gameserv.c:36 modules/chanserv/set_guard.c:34 modules/chanserv/set_keeptopic.c:34 8105 - #: modules/chanserv/set_limitflags.c:34 modules/chanserv/set_mlock.c:47 modules/chanserv/set_private.c:34 8106 - #: modules/chanserv/set_property.c:46 modules/chanserv/set_pubacl.c:34 modules/chanserv/set_restricted.c:34 8107 - #: modules/chanserv/set_secure.c:34 modules/chanserv/set_topiclock.c:34 modules/chanserv/set_verbose.c:34 8108 - #: modules/chanserv/sync.c:360 8109 - msgid "You are not authorized to perform this command." 8110 - msgstr "" 8111 - 8112 - #: libathemecore/commandtree.c:170 modules/alis/main.c:218 modules/botserv/bottalk.c:47 8113 - #: modules/botserv/bottalk.c:114 modules/botserv/info.c:76 modules/botserv/set_fantasy.c:39 8114 - #: modules/botserv/set_nobot.c:45 modules/botserv/set_private.c:47 modules/botserv/set_saycaller.c:38 8115 - #: modules/chanserv/access.c:482 modules/chanserv/access.c:561 modules/chanserv/access.c:665 8116 - #: modules/chanserv/access.c:709 modules/chanserv/access.c:770 modules/chanserv/access.c:819 8117 - #: modules/chanserv/access.c:919 modules/chanserv/access.c:968 modules/chanserv/access.c:1100 8118 - #: modules/chanserv/access.c:1191 modules/chanserv/access.c:1287 modules/chanserv/akick.c:308 8119 - #: modules/chanserv/akick.c:503 modules/chanserv/akick.c:643 modules/chanserv/ban.c:43 modules/chanserv/ban.c:131 8120 - #: modules/chanserv/clear_bans.c:58 modules/chanserv/clear_users.c:45 modules/chanserv/count.c:45 8121 - #: modules/chanserv/drop.c:49 modules/chanserv/flags.c:94 modules/chanserv/getkey.c:40 modules/chanserv/halfop.c:42 8122 - #: modules/chanserv/halfop.c:75 modules/chanserv/invite.c:53 modules/chanserv/kick.c:39 modules/chanserv/kick.c:112 8123 - #: modules/chanserv/op.c:72 modules/chanserv/owner.c:42 modules/chanserv/owner.c:75 modules/chanserv/protect.c:42 8124 - #: modules/chanserv/protect.c:75 modules/chanserv/quiet.c:122 modules/chanserv/quiet.c:289 8125 - #: modules/chanserv/quiet.c:401 modules/chanserv/recover.c:47 modules/chanserv/template.c:79 8126 - #: modules/chanserv/topic.c:51 modules/chanserv/topic.c:110 modules/chanserv/topic.c:186 8127 - #: modules/chanserv/topic.c:281 modules/chanserv/unban_self.c:67 modules/chanserv/why.c:62 8128 - #: modules/chanserv/xop.c:316 modules/chanserv/xop.c:322 modules/chanserv/xop.c:341 modules/chanserv/xop.c:347 8129 - #: modules/chanserv/xop.c:361 modules/chanserv/xop.c:433 modules/gameserv/gameserv_common.h:95 8130 - #: modules/groupserv/flags.c:44 modules/groupserv/flags.c:80 modules/groupserv/flags.c:132 8131 - #: modules/groupserv/invite.c:41 modules/groupserv/listchans.c:44 modules/memoserv/sendops.c:89 8132 - #: modules/nickserv/sendpass_user.c:39 modules/operserv/soper.c:19 modules/rpgserv/set.c:189 8027 + #: include/atheme/constants.h:83 8133 8028 msgid "You are not authorized to perform this operation." 8134 8029 msgstr "" 8135 8030 ··· 8148 8043 msgid "You are not authorized to use the target argument." 8149 8044 msgstr "" 8150 8045 8151 - #: libathemecore/commandtree.c:135 modules/botserv/set_nobot.c:39 modules/botserv/set_private.c:41 8152 - #: modules/chanserv/akick.c:617 modules/chanserv/flags.c:284 modules/chanserv/set_founder.c:40 8153 - #: modules/chanserv/status.c:57 modules/chanserv/template.c:127 modules/chanserv/unban_self.c:60 8154 - #: modules/chanserv/xop.c:277 modules/groupserv/fflags.c:37 modules/hostserv/offer.c:151 modules/infoserv/main.c:250 8155 - #: modules/nickserv/access.c:199 modules/nickserv/access.c:251 modules/nickserv/access.c:384 8156 - #: modules/nickserv/badmail.c:108 modules/nickserv/cert.c:34 modules/nickserv/cert.c:76 modules/nickserv/cert.c:131 8157 - #: modules/nickserv/cert.c:167 modules/nickserv/listchans.c:45 modules/nickserv/listgroups.c:45 8158 - #: modules/nickserv/logout.c:23 modules/nickserv/status.c:76 8046 + #: include/atheme/constants.h:84 8159 8047 msgid "You are not logged in." 8160 8048 msgstr "" 8161 8049 ··· 8308 8196 msgid "You do not have appropriate permissions to set flags: %s" 8309 8197 msgstr "" 8310 8198 8311 - #: include/atheme/constants.h:78 8199 + #: include/atheme/constants.h:82 8312 8200 #, c-format 8313 8201 msgid "You do not have the %s privilege." 8314 8202 msgstr ""
+6
include/atheme/constants.h
··· 73 73 # define TIME_FORMAT "%b %d %H:%M:%S %Y %z" 74 74 #endif 75 75 76 + #define STR_CHANNEL_IS_CLOSED _("\2%s\2 is closed.") 77 + #define STR_CHANNEL_IS_EMPTY _("\2%s\2 is currently empty.") 76 78 #define STR_INSUFFICIENT_PARAMS _("Insufficient parameters for \2%s\2.") 77 79 #define STR_INVALID_PARAMS _("Invalid parameters for \2%s\2.") 80 + #define STR_IRC_COMMAND_ONLY _("\2%s\2 can only be executed via IRC.") 81 + #define STR_IS_NOT_REGISTERED _("\2%s\2 is not registered.") 78 82 #define STR_NO_PRIVILEGE _("You do not have the \2%s\2 privilege.") 83 + #define STR_NOT_AUTHORIZED _("You are not authorized to perform this operation.") 84 + #define STR_NOT_LOGGED_IN _("You are not logged in.") 79 85 80 86 #endif /* !ATHEME_INC_CONSTANTS_H */
+1 -1
modules/alis/main.c
··· 215 215 { 216 216 if (! has_priv(si, PRIV_CHAN_AUSPEX)) 217 217 { 218 - (void) command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 218 + (void) command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 219 219 return false; 220 220 } 221 221
+6 -6
modules/botserv/bottalk.c
··· 32 32 33 33 if (!mc) 34 34 { 35 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 35 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 36 36 return; 37 37 } 38 38 39 39 if (!c) 40 40 { 41 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel); 41 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel); 42 42 return; 43 43 } 44 44 45 45 if (!(chanacs_source_flags(mc, si) & (CA_OP | CA_AUTOOP))) 46 46 { 47 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 47 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 48 48 return; 49 49 } 50 50 ··· 99 99 100 100 if (!mc) 101 101 { 102 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 102 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 103 103 return; 104 104 } 105 105 106 106 if (!c) 107 107 { 108 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel); 108 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel); 109 109 return; 110 110 } 111 111 112 112 if (!(chanacs_source_flags(mc, si) & (CA_OP | CA_AUTOOP))) 113 113 { 114 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 114 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 115 115 return; 116 116 } 117 117
+1 -1
modules/botserv/info.c
··· 73 73 { 74 74 if (!(mc->flags & MC_PUBACL) && !chanacs_source_has_flag(mc, si, CA_ACLVIEW) && !has_priv(si, PRIV_CHAN_AUSPEX)) 75 75 { 76 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 76 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 77 77 return; 78 78 } 79 79
+2 -2
modules/botserv/main.c
··· 794 794 795 795 if (mc == NULL) 796 796 { 797 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), parv[0]); 797 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 798 798 return; 799 799 } 800 800 ··· 870 870 871 871 if (mc == NULL) 872 872 { 873 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), parv[0]); 873 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 874 874 return; 875 875 } 876 876
+2 -2
modules/botserv/set_fantasy.c
··· 30 30 mc = mychan_find(channel); 31 31 if (!mc) 32 32 { 33 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 33 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 34 34 return; 35 35 } 36 36 37 37 if (!chanacs_source_has_flag(mc, si, CA_SET)) 38 38 { 39 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 39 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 40 40 return; 41 41 } 42 42
+3 -3
modules/botserv/set_nobot.c
··· 30 30 mc = mychan_find(channel); 31 31 if (!mc) 32 32 { 33 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 33 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 34 34 return; 35 35 } 36 36 37 37 if (!si->smu) 38 38 { 39 - command_fail(si, fault_noprivs, _("You are not logged in.")); 39 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 40 40 return; 41 41 } 42 42 43 43 if (!has_priv(si, PRIV_CHAN_ADMIN)) 44 44 { 45 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 45 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 46 46 return; 47 47 } 48 48
+2 -2
modules/botserv/set_private.c
··· 38 38 39 39 if (!si->smu) 40 40 { 41 - command_fail(si, fault_noprivs, _("You are not logged in.")); 41 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 42 42 return; 43 43 } 44 44 45 45 if (!has_priv(si, PRIV_CHAN_ADMIN)) 46 46 { 47 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 47 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 48 48 return; 49 49 } 50 50
+2 -2
modules/botserv/set_saycaller.c
··· 29 29 mc = mychan_find(channel); 30 30 if (!mc) 31 31 { 32 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 32 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 33 33 return; 34 34 } 35 35 36 36 if (!chanacs_source_has_flag(mc, si, CA_SET)) 37 37 { 38 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 38 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 39 39 return; 40 40 } 41 41
+24 -24
modules/chanserv/access.c
··· 469 469 mc = mychan_find(channel); 470 470 if (!mc) 471 471 { 472 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 472 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 473 473 return; 474 474 } 475 475 ··· 479 479 operoverride = true; 480 480 else 481 481 { 482 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 482 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 483 483 return; 484 484 } 485 485 } ··· 541 541 mc = mychan_find(channel); 542 542 if (!mc) 543 543 { 544 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 544 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 545 545 return; 546 546 } 547 547 ··· 558 558 operoverride = true; 559 559 else 560 560 { 561 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 561 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 562 562 return; 563 563 } 564 564 } ··· 569 569 { 570 570 if (!(mt = myentity_find_ext(target))) 571 571 { 572 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 572 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 573 573 return; 574 574 } 575 575 target = mt->name; ··· 644 644 mc = mychan_find(channel); 645 645 if (!mc) 646 646 { 647 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 647 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 648 648 return; 649 649 } 650 650 ··· 662 662 */ 663 663 if (!chanacs_source_has_flag(mc, si, CA_FLAGS) && entity(si->smu) != mt) 664 664 { 665 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 665 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 666 666 return; 667 667 } 668 668 ··· 672 672 { 673 673 if (mt == NULL) 674 674 { 675 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 675 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 676 676 return; 677 677 } 678 678 target = mt->name; ··· 706 706 { 707 707 if (restrictflags & CA_AKICK && entity(si->smu) == mt) 708 708 { 709 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 709 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 710 710 return; 711 711 } 712 712 ··· 751 751 mc = mychan_find(channel); 752 752 if (!mc) 753 753 { 754 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 754 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 755 755 return; 756 756 } 757 757 ··· 767 767 */ 768 768 if (!chanacs_source_has_flag(mc, si, CA_FLAGS)) 769 769 { 770 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 770 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 771 771 return; 772 772 } 773 773 ··· 777 777 { 778 778 if (!(mt = myentity_find_ext(target))) 779 779 { 780 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 780 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 781 781 return; 782 782 } 783 783 target = mt->name; ··· 816 816 { 817 817 if (restrictflags & CA_AKICK && entity(si->smu) == mt) 818 818 { 819 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 819 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 820 820 return; 821 821 } 822 822 ··· 900 900 mc = mychan_find(channel); 901 901 if (!mc) 902 902 { 903 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 903 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 904 904 return; 905 905 } 906 906 ··· 916 916 */ 917 917 if (!chanacs_source_has_flag(mc, si, CA_FLAGS)) 918 918 { 919 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 919 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 920 920 return; 921 921 } 922 922 ··· 926 926 { 927 927 if (!(mt = myentity_find_ext(target))) 928 928 { 929 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 929 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 930 930 return; 931 931 } 932 932 target = mt->name; ··· 965 965 { 966 966 if (restrictflags & CA_AKICK && entity(si->smu) == mt) 967 967 { 968 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 968 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 969 969 return; 970 970 } 971 971 ··· 1044 1044 mc = mychan_find(channel); 1045 1045 if (!mc) 1046 1046 { 1047 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 1047 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 1048 1048 return; 1049 1049 } 1050 1050 ··· 1084 1084 mc = mychan_find(channel); 1085 1085 if (!mc) 1086 1086 { 1087 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 1087 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 1088 1088 return; 1089 1089 } 1090 1090 ··· 1097 1097 1098 1098 if (!chanacs_source_has_flag(mc, si, CA_FLAGS)) 1099 1099 { 1100 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 1100 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 1101 1101 return; 1102 1102 } 1103 1103 ··· 1175 1175 mc = mychan_find(channel); 1176 1176 if (!mc) 1177 1177 { 1178 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 1178 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 1179 1179 return; 1180 1180 } 1181 1181 ··· 1188 1188 1189 1189 if (!chanacs_source_has_flag(mc, si, CA_FLAGS)) 1190 1190 { 1191 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 1191 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 1192 1192 return; 1193 1193 } 1194 1194 ··· 1271 1271 mc = mychan_find(channel); 1272 1272 if (!mc) 1273 1273 { 1274 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 1274 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 1275 1275 return; 1276 1276 } 1277 1277 ··· 1284 1284 1285 1285 if (!chanacs_source_has_flag(mc, si, CA_FLAGS)) 1286 1286 { 1287 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 1287 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 1288 1288 return; 1289 1289 } 1290 1290
+10 -10
modules/chanserv/akick.c
··· 220 220 mc = mychan_find(chan); 221 221 if (!mc) 222 222 { 223 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 223 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 224 224 return; 225 225 } 226 226 227 227 if (metadata_find(mc, "private:close:closer")) 228 228 { 229 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 229 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 230 230 return; 231 231 } 232 232 ··· 305 305 306 306 if ((chanacs_source_flags(mc, si) & (CA_FLAGS | CA_REMOVE)) != (CA_FLAGS | CA_REMOVE)) 307 307 { 308 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 308 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 309 309 return; 310 310 } 311 311 ··· 485 485 mc = mychan_find(chan); 486 486 if (!mc) 487 487 { 488 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 488 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 489 489 return; 490 490 } 491 491 492 492 if (metadata_find(mc, "private:close:closer")) 493 493 { 494 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 494 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 495 495 return; 496 496 } 497 497 ··· 500 500 501 501 if ((chanacs_source_flags(mc, si) & (CA_FLAGS | CA_REMOVE)) != (CA_FLAGS | CA_REMOVE)) 502 502 { 503 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 503 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 504 504 return; 505 505 } 506 506 ··· 614 614 // if they're opers and just want to LIST, they don't have to log in 615 615 if (!(has_priv(si, PRIV_CHAN_AUSPEX))) 616 616 { 617 - command_fail(si, fault_noprivs, _("You are not logged in.")); 617 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 618 618 return; 619 619 } 620 620 } ··· 622 622 mc = mychan_find(chan); 623 623 if (!mc) 624 624 { 625 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 625 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 626 626 return; 627 627 } 628 628 629 629 if (metadata_find(mc, "private:close:closer")) 630 630 { 631 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 631 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 632 632 return; 633 633 } 634 634 ··· 640 640 operoverride = true; 641 641 else 642 642 { 643 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 643 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 644 644 return; 645 645 } 646 646 }
+3 -3
modules/chanserv/antiflood.c
··· 389 389 390 390 if (!(mc = mychan_find(parv[0]))) 391 391 { 392 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 392 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 393 393 return; 394 394 } 395 395 ··· 397 397 oper-specific settings (i.e. AKILL action) */ 398 398 if (!chanacs_source_has_flag(mc, si, CA_SET) && !has_priv(si, PRIV_CHAN_ADMIN)) 399 399 { 400 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 400 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 401 401 return; 402 402 } 403 403 ··· 461 461 } 462 462 else 463 463 { 464 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 464 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 465 465 return; 466 466 } 467 467 }
+7 -7
modules/chanserv/ban.c
··· 28 28 29 29 if (!mc) 30 30 { 31 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 31 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 32 32 return; 33 33 } 34 34 35 35 if (!c) 36 36 { 37 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel); 37 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel); 38 38 return; 39 39 } 40 40 41 41 if (!chanacs_source_has_flag(mc, si, CA_REMOVE)) 42 42 { 43 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 43 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 44 44 return; 45 45 } 46 46 47 47 if (metadata_find(mc, "private:close:closer")) 48 48 { 49 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), channel); 49 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, channel); 50 50 return; 51 51 } 52 52 ··· 113 113 114 114 if (!mc) 115 115 { 116 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 116 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 117 117 return; 118 118 } 119 119 120 120 if (!c) 121 121 { 122 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel); 122 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel); 123 123 return; 124 124 } 125 125 ··· 128 128 !chanacs_source_has_flag(mc, si, CA_EXEMPT) || 129 129 irccasecmp(target, si->su->nick))) 130 130 { 131 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 131 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 132 132 return; 133 133 } 134 134
+3 -3
modules/chanserv/clear_akicks.c
··· 29 29 30 30 if (!(mc = mychan_find(name))) 31 31 { 32 - command_fail(si, fault_nosuch_target, "\2%s\2 is not registered.", name); 32 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name); 33 33 return; 34 34 } 35 35 36 36 if (metadata_find(mc, "private:close:closer")) 37 37 { 38 - command_fail(si, fault_noprivs, "\2%s\2 is closed.", name); 38 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, name); 39 39 return; 40 40 } 41 41 ··· 47 47 48 48 if (!(chanacs_source_has_flag(mc, si, CA_RECOVER) && chanacs_source_has_flag(mc, si, CA_FLAGS))) 49 49 { 50 - command_fail(si, fault_noprivs, "You are not authorized to perform this operation."); 50 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 51 51 return; 52 52 } 53 53
+4 -4
modules/chanserv/clear_bans.c
··· 43 43 44 44 if (!mc) 45 45 { 46 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 46 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 47 47 return; 48 48 } 49 49 50 50 if (!(c = channel_find(parv[0]))) 51 51 { 52 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), parv[0]); 52 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, parv[0]); 53 53 return; 54 54 } 55 55 56 56 if (!chanacs_source_has_flag(mc, si, CA_RECOVER)) 57 57 { 58 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 58 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 59 59 return; 60 60 } 61 61 62 62 if (metadata_find(mc, "private:close:closer")) 63 63 { 64 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), parv[0]); 64 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, parv[0]); 65 65 return; 66 66 } 67 67
+3 -3
modules/chanserv/clear_flags.c
··· 29 29 30 30 if (!(mc = mychan_find(name))) 31 31 { 32 - command_fail(si, fault_nosuch_target, "\2%s\2 is not registered.", name); 32 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name); 33 33 return; 34 34 } 35 35 36 36 if (metadata_find(mc, "private:close:closer")) 37 37 { 38 - command_fail(si, fault_noprivs, "\2%s\2 is closed.", name); 38 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, name); 39 39 return; 40 40 } 41 41 42 42 if (!chanacs_source_has_flag(mc, si, CA_FOUNDER)) 43 43 { 44 - command_fail(si, fault_noprivs, "You are not authorized to perform this operation."); 44 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 45 45 return; 46 46 } 47 47
+4 -4
modules/chanserv/clear_users.c
··· 30 30 31 31 if (!mc) 32 32 { 33 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 33 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 34 34 return; 35 35 } 36 36 37 37 if (!(c = channel_find(channel))) 38 38 { 39 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel); 39 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel); 40 40 return; 41 41 } 42 42 43 43 if (!chanacs_source_has_flag(mc, si, CA_RECOVER)) 44 44 { 45 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 45 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 46 46 return; 47 47 } 48 48 49 49 if (metadata_find(mc, "private:close:closer")) 50 50 { 51 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), channel); 51 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, channel); 52 52 return; 53 53 } 54 54
+6 -6
modules/chanserv/clone.c
··· 29 29 30 30 if (!(mc = mychan_find(source))) 31 31 { 32 - command_fail(si, fault_nosuch_target, "\2%s\2 is not registered.", source); 32 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, source); 33 33 return; 34 34 } 35 35 36 36 if (!(mc2 = mychan_find(target))) 37 37 { 38 - command_fail(si, fault_nosuch_target, "\2%s\2 is not registered.", target); 38 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 39 39 return; 40 40 } 41 41 ··· 47 47 48 48 if (metadata_find(mc, "private:close:closer")) 49 49 { 50 - command_fail(si, fault_noprivs, "\2%s\2 is closed.", source); 50 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, source); 51 51 return; 52 52 } 53 53 54 54 if (metadata_find(mc2, "private:close:closer")) 55 55 { 56 - command_fail(si, fault_noprivs, "\2%s\2 is closed.", target); 56 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, target); 57 57 return; 58 58 } 59 59 ··· 71 71 72 72 if (!(mc->flags & MC_PUBACL) && !chanacs_source_has_flag(mc, si, CA_ACLVIEW)) 73 73 { 74 - command_fail(si, fault_noprivs, "You are not authorized to perform this operation."); 74 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 75 75 return; 76 76 } 77 77 78 78 if (!chanacs_source_has_flag(mc2, si, CA_FOUNDER)) 79 79 { 80 - command_fail(si, fault_noprivs, "You are not authorized to perform this operation."); 80 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 81 81 return; 82 82 } 83 83
+1 -1
modules/chanserv/close.c
··· 60 60 61 61 if (!(mc = mychan_find(target))) 62 62 { 63 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), target); 63 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 64 64 return; 65 65 } 66 66
+3 -3
modules/chanserv/count.c
··· 32 32 33 33 if (!mc) 34 34 { 35 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 35 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 36 36 return; 37 37 } 38 38 ··· 42 42 operoverride = true; 43 43 else 44 44 { 45 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 45 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 46 46 return; 47 47 } 48 48 } 49 49 50 50 if (metadata_find(mc, "private:close:closer")) 51 51 { 52 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 52 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 53 53 return; 54 54 } 55 55
+3 -3
modules/chanserv/drop.c
··· 33 33 34 34 if (! (mc = mychan_find(name))) 35 35 { 36 - (void) command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), name); 36 + (void) command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name); 37 37 return; 38 38 } 39 39 ··· 46 46 47 47 if (! is_founder(mc, entity(si->smu))) 48 48 { 49 - (void) command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 49 + (void) command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 50 50 return; 51 51 } 52 52 ··· 129 129 130 130 if (! (mc = mychan_find(name))) 131 131 { 132 - (void) command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), name); 132 + (void) command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name); 133 133 return; 134 134 } 135 135
+2 -2
modules/chanserv/fflags.c
··· 32 32 mc = mychan_find(channel); 33 33 if (!mc) 34 34 { 35 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 35 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 36 36 return; 37 37 } 38 38 ··· 64 64 { 65 65 if (!(mt = myentity_find_ext(target))) 66 66 { 67 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 67 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 68 68 return; 69 69 } 70 70 target = mt->name;
+9 -9
modules/chanserv/flags.c
··· 91 91 operoverride = true; 92 92 else 93 93 { 94 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 94 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 95 95 return; 96 96 } 97 97 } ··· 180 180 mc = mychan_find(channel); 181 181 if (!mc) 182 182 { 183 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 183 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 184 184 return; 185 185 } 186 186 187 187 if (metadata_find(mc, "private:close:closer") && (target || !has_priv(si, PRIV_CHAN_AUSPEX))) 188 188 { 189 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), channel); 189 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, channel); 190 190 return; 191 191 } 192 192 ··· 238 238 239 239 if (!chanacs_source_has_flag(mc, si, CA_FOUNDER)) 240 240 { 241 - command_fail(si, fault_noprivs, "You are not authorized to perform this operation."); 241 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 242 242 return; 243 243 } 244 244 ··· 281 281 282 282 if (!si->smu) 283 283 { 284 - command_fail(si, fault_noprivs, _("You are not logged in.")); 284 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 285 285 return; 286 286 } 287 287 ··· 289 289 { 290 290 if (!(mc->flags & MC_PUBACL) && !chanacs_source_has_flag(mc, si, CA_ACLVIEW)) 291 291 { 292 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 292 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 293 293 return; 294 294 } 295 295 if (validhostmask(target)) ··· 298 298 { 299 299 if (!(mt = myentity_find_ext(target))) 300 300 { 301 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 301 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 302 302 return; 303 303 } 304 304 sfree(target); ··· 334 334 irccasecmp(target, entity(si->smu)->name) || 335 335 strcmp(flagstr, "-*")) 336 336 { 337 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 337 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 338 338 return; 339 339 } 340 340 } ··· 372 372 { 373 373 if (!(mt = myentity_find_ext(target))) 374 374 { 375 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 375 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 376 376 return; 377 377 } 378 378 sfree(target);
+2 -2
modules/chanserv/ftransfer.c
··· 29 29 30 30 if (!(mt = myentity_find_ext(newfndr))) 31 31 { 32 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), newfndr); 32 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, newfndr); 33 33 return; 34 34 } 35 35 ··· 41 41 42 42 if (!(mc = mychan_find(name))) 43 43 { 44 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), name); 44 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name); 45 45 return; 46 46 } 47 47
+4 -4
modules/chanserv/getkey.c
··· 25 25 mc = mychan_find(chan); 26 26 if (!mc) 27 27 { 28 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 28 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 29 29 return; 30 30 } 31 31 32 32 if (metadata_find(mc, "private:close:closer")) 33 33 { 34 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 34 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 35 35 return; 36 36 } 37 37 38 38 if (!chanacs_source_has_flag(mc, si, CA_INVITE)) 39 39 { 40 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 40 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 41 41 return; 42 42 } 43 43 44 44 if (!mc->chan) 45 45 { 46 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), mc->name); 46 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, mc->name); 47 47 return; 48 48 } 49 49
+4 -4
modules/chanserv/halfop.c
··· 33 33 mc = mychan_find(chan); 34 34 if (!mc) 35 35 { 36 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 36 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 37 37 return; 38 38 } 39 39 40 40 if (!chanacs_source_has_flag(mc, si, CA_HALFOP)) 41 41 { 42 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 42 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 43 43 return; 44 44 } 45 45 46 46 if (metadata_find(mc, "private:close:closer")) 47 47 { 48 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 48 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 49 49 return; 50 50 } 51 51 ··· 72 72 // SECURE check; we can skip this if deopping or sender == target, because we already verified 73 73 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)) 74 74 { 75 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 75 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 76 76 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); 77 77 continue; 78 78 }
+1 -1
modules/chanserv/hold.c
··· 31 31 32 32 if (!(mc = mychan_find(target))) 33 33 { 34 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), target); 34 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 35 35 return; 36 36 } 37 37
+1 -1
modules/chanserv/info.c
··· 40 40 41 41 if (!(mc = mychan_find(name))) 42 42 { 43 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), name); 43 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name); 44 44 return; 45 45 } 46 46
+5 -5
modules/chanserv/invite.c
··· 18 18 19 19 if (si->su == NULL) 20 20 { 21 - command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "INVITE"); 21 + command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "INVITE"); 22 22 return; 23 23 } 24 24 ··· 38 38 39 39 if (!(mc = mychan_find(chan))) 40 40 { 41 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 41 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 42 42 return; 43 43 } 44 44 45 45 if (metadata_find(mc, "private:close:closer")) 46 46 { 47 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 47 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 48 48 return; 49 49 } 50 50 51 51 if (!chanacs_source_has_flag(mc, si, CA_INVITE)) 52 52 { 53 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 53 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 54 54 return; 55 55 } 56 56 57 57 if (!mc->chan) 58 58 { 59 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), mc->name); 59 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, mc->name); 60 60 return; 61 61 } 62 62
+5 -5
modules/chanserv/kick.c
··· 30 30 mc = mychan_find(chan); 31 31 if (!mc) 32 32 { 33 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 33 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 34 34 return; 35 35 } 36 36 37 37 if (!chanacs_source_has_flag(mc, si, CA_REMOVE)) 38 38 { 39 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 39 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 40 40 return; 41 41 } 42 42 43 43 if (metadata_find(mc, "private:close:closer")) 44 44 { 45 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 45 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 46 46 return; 47 47 } 48 48 ··· 103 103 mc = mychan_find(chan); 104 104 if (!mc) 105 105 { 106 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 106 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 107 107 return; 108 108 } 109 109 110 110 if (!chanacs_source_has_flag(mc, si, CA_REMOVE)) 111 111 { 112 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 112 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 113 113 return; 114 114 } 115 115
+1 -1
modules/chanserv/mark.c
··· 32 32 33 33 if (!(mc = mychan_find(target))) 34 34 { 35 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), target); 35 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 36 36 return; 37 37 } 38 38
+3 -3
modules/chanserv/op.c
··· 27 27 mc = mychan_find(chan); 28 28 if (!mc) 29 29 { 30 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 30 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 31 31 return; 32 32 } 33 33 34 34 if (metadata_find(mc, "private:close:closer")) 35 35 { 36 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 36 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 37 37 return; 38 38 } 39 39 ··· 69 69 // SECURE check; we can skip this if deopping or sender == target, because we already verified 70 70 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)) 71 71 { 72 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 72 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 73 73 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); 74 74 continue; 75 75 }
+4 -4
modules/chanserv/owner.c
··· 33 33 mc = mychan_find(chan); 34 34 if (!mc) 35 35 { 36 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 36 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 37 37 return; 38 38 } 39 39 40 40 if (!chanacs_source_has_flag(mc, si, CA_USEOWNER)) 41 41 { 42 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 42 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 43 43 return; 44 44 } 45 45 46 46 if (metadata_find(mc, "private:close:closer")) 47 47 { 48 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 48 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 49 49 return; 50 50 } 51 51 ··· 72 72 // SECURE check; we can skip this if deownering or sender == target, because we already verified 73 73 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)) 74 74 { 75 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 75 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 76 76 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); 77 77 continue; 78 78 }
+4 -4
modules/chanserv/protect.c
··· 33 33 mc = mychan_find(chan); 34 34 if (!mc) 35 35 { 36 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 36 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 37 37 return; 38 38 } 39 39 40 40 if (!chanacs_source_has_flag(mc, si, CA_USEPROTECT)) 41 41 { 42 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 42 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 43 43 return; 44 44 } 45 45 46 46 if (metadata_find(mc, "private:close:closer")) 47 47 { 48 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 48 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 49 49 return; 50 50 } 51 51 ··· 72 72 // SECURE check; we can skip this if deprotecting or sender == target, because we already verified 73 73 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)) 74 74 { 75 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 75 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 76 76 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); 77 77 continue; 78 78 }
+8 -8
modules/chanserv/quiet.c
··· 119 119 flag = 0; 120 120 if (flag != 0 && !chanacs_source_has_flag(mc, si, flag)) 121 121 { 122 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 122 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 123 123 return DEVOICE_FAILED; 124 124 } 125 125 ··· 274 274 275 275 if (!mc) 276 276 { 277 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 277 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 278 278 return; 279 279 } 280 280 281 281 if (!c) 282 282 { 283 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel); 283 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel); 284 284 return; 285 285 } 286 286 287 287 if (!chanacs_source_has_flag(mc, si, CA_REMOVE)) 288 288 { 289 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 289 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 290 290 return; 291 291 } 292 292 293 293 if (metadata_find(mc, "private:close:closer")) 294 294 { 295 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), channel); 295 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, channel); 296 296 return; 297 297 } 298 298 ··· 383 383 384 384 if (!mc) 385 385 { 386 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 386 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 387 387 return; 388 388 } 389 389 390 390 if (!c) 391 391 { 392 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel); 392 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel); 393 393 return; 394 394 } 395 395 ··· 398 398 !chanacs_source_has_flag(mc, si, CA_EXEMPT) || 399 399 irccasecmp(target, si->su->nick))) 400 400 { 401 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 401 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 402 402 return; 403 403 } 404 404
+4 -4
modules/chanserv/recover.c
··· 32 32 33 33 if (!(mc = mychan_find(name))) 34 34 { 35 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), name); 35 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name); 36 36 return; 37 37 } 38 38 39 39 if (metadata_find(mc, "private:close:closer")) 40 40 { 41 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), name); 41 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, name); 42 42 return; 43 43 } 44 44 45 45 if (!chanacs_source_has_flag(mc, si, CA_RECOVER)) 46 46 { 47 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 47 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 48 48 return; 49 49 } 50 50 ··· 58 58 } 59 59 if (!mc->chan) 60 60 { 61 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), name); 61 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, name); 62 62 return; 63 63 } 64 64 }
+2 -2
modules/chanserv/set_email.c
··· 20 20 21 21 if (!(mc = mychan_find(parv[0]))) 22 22 { 23 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 23 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 24 24 return; 25 25 } 26 26 27 27 if (!chanacs_source_has_flag(mc, si, CA_SET)) 28 28 { 29 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 29 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 30 30 return; 31 31 } 32 32
+2 -2
modules/chanserv/set_entrymsg.c
··· 19 19 20 20 if (!(mc = mychan_find(parv[0]))) 21 21 { 22 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 22 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 23 23 return; 24 24 } 25 25 26 26 if (!chanacs_source_has_flag(mc, si, CA_SET)) 27 27 { 28 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 28 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 29 29 return; 30 30 } 31 31
+2 -2
modules/chanserv/set_fantasy.c
··· 19 19 20 20 if (!(mc = mychan_find(parv[0]))) 21 21 { 22 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 22 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 23 23 return; 24 24 } 25 25 ··· 31 31 32 32 if (!chanacs_source_has_flag(mc, si, CA_SET)) 33 33 { 34 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 34 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 35 35 return; 36 36 } 37 37
+3 -3
modules/chanserv/set_founder.c
··· 37 37 38 38 if (!si->smu) 39 39 { 40 - command_fail(si, fault_noprivs, _("You are not logged in.")); 40 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 41 41 return; 42 42 } 43 43 ··· 49 49 50 50 if (!(mt = myentity_find_ext(newfounder))) 51 51 { 52 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), newfounder); 52 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, newfounder); 53 53 return; 54 54 } 55 55 if (!isuser(mt)) ··· 60 60 61 61 if (!(mc = mychan_find(parv[0]))) 62 62 { 63 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 63 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 64 64 return; 65 65 } 66 66
+2 -2
modules/chanserv/set_gameserv.c
··· 21 21 22 22 if (!(mc = mychan_find(parv[0]))) 23 23 { 24 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 24 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 25 25 return; 26 26 } 27 27 ··· 33 33 34 34 if (!chanacs_source_has_flag(mc, si, CA_SET)) 35 35 { 36 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 36 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 37 37 return; 38 38 } 39 39
+2 -2
modules/chanserv/set_guard.c
··· 19 19 20 20 if (!(mc = mychan_find(parv[0]))) 21 21 { 22 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 22 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 23 23 return; 24 24 } 25 25 ··· 31 31 32 32 if (!chanacs_source_has_flag(mc, si, CA_SET)) 33 33 { 34 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 34 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 35 35 return; 36 36 } 37 37
+2 -2
modules/chanserv/set_keeptopic.c
··· 19 19 20 20 if (!(mc = mychan_find(parv[0]))) 21 21 { 22 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 22 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 23 23 return; 24 24 } 25 25 ··· 31 31 32 32 if (!chanacs_source_has_flag(mc, si, CA_SET)) 33 33 { 34 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 34 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 35 35 return; 36 36 } 37 37
+2 -2
modules/chanserv/set_limitflags.c
··· 19 19 20 20 if (!(mc = mychan_find(parv[0]))) 21 21 { 22 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 22 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 23 23 return; 24 24 } 25 25 ··· 31 31 32 32 if ((chanacs_source_flags(mc, si) & CA_HIGHPRIVS) != CA_HIGHPRIVS) 33 33 { 34 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 34 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 35 35 return; 36 36 } 37 37
+2 -2
modules/chanserv/set_mlock.c
··· 34 34 35 35 if (!(mc = mychan_find(parv[0]))) 36 36 { 37 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 37 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 38 38 return; 39 39 } 40 40 ··· 44 44 !has_priv(si, PRIV_CHAN_CMODES) || 45 45 !has_priv(si, PRIV_CHAN_ADMIN)) 46 46 { 47 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 47 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 48 48 return; 49 49 } 50 50 mask = ~ircd->oper_only_modes;
+2 -2
modules/chanserv/set_prefix.c
··· 34 34 35 35 if (!(mc = mychan_find(parv[0]))) 36 36 { 37 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 37 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 38 38 return; 39 39 } 40 40 41 41 if (!chanacs_source_has_flag(mc, si, CA_SET)) 42 42 { 43 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 43 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 44 44 return; 45 45 } 46 46
+2 -2
modules/chanserv/set_private.c
··· 19 19 20 20 if (!(mc = mychan_find(parv[0]))) 21 21 { 22 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 22 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 23 23 return; 24 24 } 25 25 ··· 31 31 32 32 if (!chanacs_source_has_flag(mc, si, CA_SET)) 33 33 { 34 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 34 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 35 35 return; 36 36 } 37 37
+2 -2
modules/chanserv/set_property.c
··· 37 37 38 38 if (!(mc = mychan_find(parv[0]))) 39 39 { 40 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 40 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 41 41 return; 42 42 } 43 43 44 44 if (!is_founder(mc, entity(si->smu))) 45 45 { 46 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 46 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 47 47 return; 48 48 } 49 49
+2 -2
modules/chanserv/set_pubacl.c
··· 19 19 20 20 if (!(mc = mychan_find(parv[0]))) 21 21 { 22 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 22 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 23 23 return; 24 24 } 25 25 ··· 31 31 32 32 if (!chanacs_source_has_flag(mc, si, CA_SET)) 33 33 { 34 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 34 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 35 35 return; 36 36 } 37 37
+2 -2
modules/chanserv/set_restricted.c
··· 19 19 20 20 if (!(mc = mychan_find(parv[0]))) 21 21 { 22 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 22 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 23 23 return; 24 24 } 25 25 ··· 31 31 32 32 if (!chanacs_source_has_flag(mc, si, CA_SET)) 33 33 { 34 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 34 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 35 35 return; 36 36 } 37 37
+2 -2
modules/chanserv/set_secure.c
··· 19 19 20 20 if (!(mc = mychan_find(parv[0]))) 21 21 { 22 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 22 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 23 23 return; 24 24 } 25 25 ··· 31 31 32 32 if (!chanacs_source_has_flag(mc, si, CA_SET)) 33 33 { 34 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 34 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 35 35 return; 36 36 } 37 37
+2 -2
modules/chanserv/set_topiclock.c
··· 19 19 20 20 if (!(mc = mychan_find(parv[0]))) 21 21 { 22 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 22 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 23 23 return; 24 24 } 25 25 ··· 31 31 32 32 if (!chanacs_source_has_flag(mc, si, CA_SET)) 33 33 { 34 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 34 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 35 35 return; 36 36 } 37 37
+2 -2
modules/chanserv/set_url.c
··· 20 20 21 21 if (!(mc = mychan_find(parv[0]))) 22 22 { 23 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 23 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 24 24 return; 25 25 } 26 26 27 27 if (!chanacs_source_has_flag(mc, si, CA_SET)) 28 28 { 29 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 29 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 30 30 return; 31 31 } 32 32
+2 -2
modules/chanserv/set_verbose.c
··· 19 19 20 20 if (!(mc = mychan_find(parv[0]))) 21 21 { 22 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 22 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 23 23 return; 24 24 } 25 25 ··· 31 31 32 32 if (!chanacs_source_has_flag(mc, si, CA_SET)) 33 33 { 34 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 34 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 35 35 return; 36 36 } 37 37
+3 -3
modules/chanserv/status.c
··· 27 27 28 28 if (!mc) 29 29 { 30 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 30 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 31 31 return; 32 32 } 33 33 ··· 35 35 36 36 if (metadata_find(mc, "private:close:closer")) 37 37 { 38 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 38 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 39 39 return; 40 40 } 41 41 ··· 54 54 55 55 logcommand(si, CMDLOG_GET, "STATUS"); 56 56 if (!si->smu) 57 - command_success_nodata(si, _("You are not logged in.")); 57 + command_success_nodata(si, STR_NOT_LOGGED_IN); 58 58 else 59 59 { 60 60 command_success_nodata(si, _("You are logged in as \2%s\2."), entity(si->smu)->name);
+5 -5
modules/chanserv/sync.c
··· 308 308 309 309 if (!(mc = mychan_find(name))) 310 310 { 311 - command_fail(si, fault_nosuch_target, "\2%s\2 is not registered.", name); 311 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name); 312 312 return; 313 313 } 314 314 315 315 if (metadata_find(mc, "private:close:closer")) 316 316 { 317 - command_fail(si, fault_noprivs, "\2%s\2 is closed.", name); 317 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, name); 318 318 return; 319 319 } 320 320 ··· 326 326 327 327 if (!chanacs_source_has_flag(mc, si, CA_RECOVER)) 328 328 { 329 - command_fail(si, fault_noprivs, "You are not authorized to perform this operation."); 329 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 330 330 return; 331 331 } 332 332 ··· 345 345 346 346 if (!(mc = mychan_find(parv[0]))) 347 347 { 348 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 348 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 349 349 return; 350 350 } 351 351 ··· 357 357 358 358 if (!chanacs_source_has_flag(mc, si, CA_SET)) 359 359 { 360 - command_fail(si, fault_noprivs, _("You are not authorized to perform this command.")); 360 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 361 361 return; 362 362 } 363 363
+6 -6
modules/chanserv/template.c
··· 64 64 mc = mychan_find(channel); 65 65 if (!mc) 66 66 { 67 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 67 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 68 68 return; 69 69 } 70 70 ··· 76 76 operoverride = true; 77 77 else 78 78 { 79 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 79 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 80 80 return; 81 81 } 82 82 } 83 83 84 84 if (metadata_find(mc, "private:close:closer") && !has_priv(si, PRIV_CHAN_AUSPEX)) 85 85 { 86 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), channel); 86 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, channel); 87 87 return; 88 88 } 89 89 ··· 124 124 125 125 if (!si->smu) 126 126 { 127 - command_fail(si, fault_noprivs, _("You are not logged in.")); 127 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 128 128 return; 129 129 } 130 130 ··· 136 136 { 137 137 if (!(restrictflags & CA_FLAGS)) 138 138 { 139 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 139 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 140 140 return; 141 141 } 142 142 restrictflags = allow_flags(mc, restrictflags); ··· 144 144 145 145 if (metadata_find(mc, "private:close:closer")) 146 146 { 147 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), channel); 147 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, channel); 148 148 return; 149 149 } 150 150
+16 -16
modules/chanserv/topic.c
··· 29 29 mc = mychan_find(chan); 30 30 if (!mc) 31 31 { 32 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 32 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 33 33 return; 34 34 } 35 35 36 36 c = channel_find(chan); 37 37 if (!c) 38 38 { 39 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), chan); 39 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, chan); 40 40 return; 41 41 } 42 42 43 43 if (metadata_find(mc, "private:close:closer")) 44 44 { 45 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 45 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 46 46 return; 47 47 } 48 48 49 49 if (!chanacs_source_has_flag(mc, si, CA_TOPIC)) 50 50 { 51 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 51 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 52 52 return; 53 53 } 54 54 ··· 94 94 mc = mychan_find(chan); 95 95 if (!mc) 96 96 { 97 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 97 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 98 98 return; 99 99 } 100 100 101 101 c = channel_find(chan); 102 102 if (!c) 103 103 { 104 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), chan); 104 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, chan); 105 105 return; 106 106 } 107 107 108 108 if (!chanacs_source_has_flag(mc, si, CA_TOPIC)) 109 109 { 110 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 110 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 111 111 return; 112 112 } 113 113 114 114 if (metadata_find(mc, "private:close:closer")) 115 115 { 116 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 116 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 117 117 return; 118 118 } 119 119 ··· 170 170 mc = mychan_find(chan); 171 171 if (!mc) 172 172 { 173 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 173 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 174 174 return; 175 175 } 176 176 177 177 c = channel_find(chan); 178 178 if (!c) 179 179 { 180 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), chan); 180 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, chan); 181 181 return; 182 182 } 183 183 184 184 if (!chanacs_source_has_flag(mc, si, CA_TOPIC)) 185 185 { 186 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 186 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 187 187 return; 188 188 } 189 189 190 190 if (metadata_find(mc, "private:close:closer")) 191 191 { 192 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 192 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 193 193 return; 194 194 } 195 195 ··· 265 265 mc = mychan_find(chan); 266 266 if (!mc) 267 267 { 268 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 268 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 269 269 return; 270 270 } 271 271 272 272 c = channel_find(chan); 273 273 if (!c) 274 274 { 275 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), chan); 275 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, chan); 276 276 return; 277 277 } 278 278 279 279 if (!chanacs_source_has_flag(mc, si, CA_TOPIC)) 280 280 { 281 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 281 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 282 282 return; 283 283 } 284 284 285 285 if (metadata_find(mc, "private:close:closer")) 286 286 { 287 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 287 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 288 288 return; 289 289 } 290 290
+5 -5
modules/chanserv/unban_self.c
··· 23 23 24 24 if (si->su == NULL) 25 25 { 26 - command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "UNBAN"); 26 + command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "UNBAN"); 27 27 return; 28 28 } 29 29 ··· 45 45 46 46 if (!mc) 47 47 { 48 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), channel); 48 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, channel); 49 49 return; 50 50 } 51 51 52 52 if (!c) 53 53 { 54 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), channel); 54 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, channel); 55 55 return; 56 56 } 57 57 58 58 if (!si->smu) 59 59 { 60 - command_fail(si, fault_noprivs, _("You are not logged in.")); 60 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 61 61 return; 62 62 } 63 63 64 64 if (!chanacs_source_has_flag(mc, si, CA_REMOVE) && 65 65 !chanacs_source_has_flag(mc, si, CA_EXEMPT)) 66 66 { 67 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 67 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 68 68 return; 69 69 } 70 70
+2 -2
modules/chanserv/voice.c
··· 27 27 mc = mychan_find(chan); 28 28 if (!mc) 29 29 { 30 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 30 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 31 31 return; 32 32 } 33 33 34 34 if (metadata_find(mc, "private:close:closer")) 35 35 { 36 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 36 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 37 37 return; 38 38 } 39 39
+3 -3
modules/chanserv/why.c
··· 48 48 49 49 if (mc == NULL) 50 50 { 51 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), 51 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, 52 52 chan); 53 53 return; 54 54 } ··· 59 59 operoverride = true; 60 60 else 61 61 { 62 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 62 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 63 63 return; 64 64 } 65 65 } 66 66 67 67 if (metadata_find(mc, "private:close:closer")) 68 68 { 69 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 69 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 70 70 return; 71 71 } 72 72
+11 -11
modules/chanserv/xop.c
··· 274 274 // if they're opers and just want to LIST, they don't have to log in 275 275 if (!(has_priv(si, PRIV_CHAN_AUSPEX) && !strcasecmp("LIST", cmd))) 276 276 { 277 - command_fail(si, fault_noprivs, _("You are not logged in.")); 277 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 278 278 return; 279 279 } 280 280 } ··· 282 282 mc = mychan_find(chan); 283 283 if (!mc) 284 284 { 285 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 285 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 286 286 return; 287 287 } 288 288 289 289 if (metadata_find(mc, "private:close:closer") && (!has_priv(si, PRIV_CHAN_AUSPEX) || strcasecmp("LIST", cmd))) 290 290 { 291 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 291 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 292 292 return; 293 293 } 294 294 ··· 313 313 * possible future denial of granting +f */ 314 314 if (!(restrictflags & CA_FLAGS)) 315 315 { 316 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 316 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 317 317 return; 318 318 } 319 319 restrictflags = allow_flags(mc, restrictflags); 320 320 if ((restrictflags & level) != level) 321 321 { 322 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 322 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 323 323 return; 324 324 } 325 325 cs_xop_do_add(si, mc, mt, uname, level, leveldesc, restrictflags); ··· 338 338 * possible future denial of granting +f */ 339 339 if (!(restrictflags & CA_FLAGS)) 340 340 { 341 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 341 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 342 342 return; 343 343 } 344 344 restrictflags = allow_flags(mc, restrictflags); 345 345 if ((restrictflags & level) != level) 346 346 { 347 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 347 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 348 348 return; 349 349 } 350 350 cs_xop_do_del(si, mc, mt, uname, level, leveldesc); ··· 358 358 operoverride = true; 359 359 else 360 360 { 361 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 361 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 362 362 return; 363 363 } 364 364 } ··· 418 418 419 419 if (!mc) 420 420 { 421 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 421 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 422 422 return; 423 423 } 424 424 425 425 if (metadata_find(mc, "private:close:closer")) 426 426 { 427 - command_fail(si, fault_noprivs, _("\2%s\2 is closed."), chan); 427 + command_fail(si, fault_noprivs, STR_CHANNEL_IS_CLOSED, chan); 428 428 return; 429 429 } 430 430 431 431 if (!is_founder(mc, entity(si->smu))) 432 432 { 433 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 433 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 434 434 return; 435 435 } 436 436
+3 -3
modules/gameserv/gameserv_common.h
··· 51 51 mc = mychan_find((*parv)[0]); 52 52 if (mc == NULL) 53 53 { 54 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), (*parv)[0]); 54 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, (*parv)[0]); 55 55 return false; 56 56 } 57 57 if (mc->chan == NULL) 58 58 { 59 - command_fail(si, fault_nosuch_target, _("\2%s\2 is currently empty."), mc->name); 59 + command_fail(si, fault_nosuch_target, STR_CHANNEL_IS_EMPTY, mc->name); 60 60 return false; 61 61 } 62 62 if (module_find_published("chanserv/set_gameserv")) ··· 92 92 } 93 93 if (!allow) 94 94 { 95 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 95 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 96 96 return false; 97 97 } 98 98 }
+1 -1
modules/groupserv/drop.c
··· 40 40 41 41 if (! groupacs_sourceinfo_has_flag(mg, si, GA_FOUNDER)) 42 42 { 43 - (void) command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 43 + (void) command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 44 44 return; 45 45 } 46 46
+1 -1
modules/groupserv/fflags.c
··· 34 34 35 35 if (si->smu == NULL) 36 36 { 37 - command_fail(si, fault_noprivs, _("You are not logged in.")); 37 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 38 38 return; 39 39 } 40 40
+3 -3
modules/groupserv/flags.c
··· 41 41 operoverride = true; 42 42 else 43 43 { 44 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 44 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 45 45 return; 46 46 } 47 47 } ··· 77 77 // simple check since it's already checked above 78 78 if (operoverride) 79 79 { 80 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 80 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 81 81 return; 82 82 } 83 83 ··· 129 129 } 130 130 else if ((oldflags & GA_FOUNDER) && !(flags & GA_FOUNDER) && !(groupacs_sourceinfo_flags(mg, si) & GA_FOUNDER)) 131 131 { 132 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 132 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 133 133 return; 134 134 } 135 135
+1 -1
modules/groupserv/invite.c
··· 38 38 39 39 if (!groupacs_sourceinfo_has_flag(mg, si, GA_INVITE)) 40 40 { 41 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 41 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 42 42 return; 43 43 } 44 44
+1 -1
modules/groupserv/join.c
··· 47 47 48 48 if (groupacs_sourceinfo_has_flag(mg, si, GA_BAN)) 49 49 { 50 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 50 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 51 51 return; 52 52 } 53 53
+1 -1
modules/groupserv/listchans.c
··· 41 41 operoverride = true; 42 42 else 43 43 { 44 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 44 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 45 45 return; 46 46 } 47 47 }
+1 -1
modules/groupserv/set_channel.c
··· 24 24 25 25 if (!groupacs_sourceinfo_has_flag(mg, si, GA_SET)) 26 26 { 27 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 27 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 28 28 return; 29 29 } 30 30
+1 -1
modules/groupserv/set_description.c
··· 24 24 25 25 if (!groupacs_sourceinfo_has_flag(mg, si, GA_SET)) 26 26 { 27 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 27 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 28 28 return; 29 29 } 30 30
+1 -1
modules/groupserv/set_email.c
··· 24 24 25 25 if (!groupacs_sourceinfo_has_flag(mg, si, GA_SET)) 26 26 { 27 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 27 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 28 28 return; 29 29 } 30 30
+1 -1
modules/groupserv/set_groupname.c
··· 43 43 44 44 if (!groupacs_sourceinfo_has_flag(mg, si, GA_FOUNDER)) 45 45 { 46 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 46 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 47 47 return; 48 48 } 49 49
+1 -1
modules/groupserv/set_joinflags.c
··· 25 25 26 26 if (!groupacs_sourceinfo_has_flag(mg, si, GA_SET)) 27 27 { 28 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 28 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 29 29 return; 30 30 } 31 31
+1 -1
modules/groupserv/set_open.c
··· 30 30 31 31 if (!groupacs_sourceinfo_has_flag(mg, si, GA_FOUNDER)) 32 32 { 33 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 33 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 34 34 return; 35 35 } 36 36
+1 -1
modules/groupserv/set_public.c
··· 30 30 31 31 if (!groupacs_sourceinfo_has_flag(mg, si, GA_FOUNDER)) 32 32 { 33 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 33 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 34 34 return; 35 35 } 36 36
+1 -1
modules/groupserv/set_url.c
··· 24 24 25 25 if (!groupacs_sourceinfo_has_flag(mg, si, GA_SET)) 26 26 { 27 - command_fail(si, fault_noprivs, _("You are not authorized to execute this command.")); 27 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 28 28 return; 29 29 } 30 30
+2 -2
modules/hostserv/drop.c
··· 21 21 // This is only because we need a nick to copy from. 22 22 if (si->su == NULL) 23 23 { 24 - command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "DROP"); 24 + command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "DROP"); 25 25 return; 26 26 } 27 27 28 28 mn = mynick_find(si->su->nick); 29 29 if (mn == NULL) 30 30 { 31 - command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), si->su->nick); 31 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, si->su->nick); 32 32 return; 33 33 } 34 34 if (mn->owner != si->smu)
+2 -2
modules/hostserv/group.c
··· 20 20 // This is only because we need a nick to copy from. 21 21 if (si->su == NULL) 22 22 { 23 - command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "GROUP"); 23 + command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "GROUP"); 24 24 return; 25 25 } 26 26 27 27 mn = mynick_find(si->su->nick); 28 28 if (mn == NULL) 29 29 { 30 - command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), si->su->nick); 30 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, si->su->nick); 31 31 return; 32 32 } 33 33 if (mn->owner != si->smu)
+1 -1
modules/hostserv/offer.c
··· 148 148 149 149 if (si->smu == NULL) 150 150 { 151 - command_fail(si, fault_noprivs, _("You are not logged in.")); 151 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 152 152 return; 153 153 } 154 154
+4 -4
modules/hostserv/onoff.c
··· 19 19 20 20 if (si->su == NULL) 21 21 { 22 - command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "ON"); 22 + command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "ON"); 23 23 return; 24 24 } 25 25 26 26 mn = mynick_find(si->su->nick); 27 27 if (mn == NULL) 28 28 { 29 - command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), si->su->nick); 29 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, si->su->nick); 30 30 return; 31 31 } 32 32 if (mn->owner != si->smu && !myuser_access_verify(si->su, mn->owner)) ··· 56 56 57 57 if (si->su == NULL) 58 58 { 59 - command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "OFF"); 59 + command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "OFF"); 60 60 return; 61 61 } 62 62 63 63 mn = mynick_find(si->su->nick); 64 64 if (mn == NULL) 65 65 { 66 - command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), si->su->nick); 66 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, si->su->nick); 67 67 return; 68 68 } 69 69 if (mn->owner != si->smu && !myuser_access_verify(si->su, mn->owner))
+1 -1
modules/hostserv/request.c
··· 225 225 mn = mynick_find(target); 226 226 if (mn == NULL) 227 227 { 228 - command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), target); 228 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 229 229 return; 230 230 } 231 231 if (mn->owner != si->smu)
+1 -1
modules/hostserv/vhost.c
··· 28 28 // find the user... 29 29 if (!(mu = myuser_find_ext(target))) 30 30 { 31 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 31 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 32 32 return; 33 33 } 34 34
+1 -1
modules/hostserv/vhostnick.c
··· 33 33 // find the user... 34 34 if (!(mu = myuser_find_ext(target))) 35 35 { 36 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 36 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 37 37 return; 38 38 } 39 39
+1 -1
modules/infoserv/main.c
··· 247 247 // make sure they're logged in 248 248 if (!si->smu) 249 249 { 250 - command_fail(si, fault_noprivs, _("You are not logged in.")); 250 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 251 251 return; 252 252 } 253 253
+1 -1
modules/memoserv/forward.c
··· 47 47 // Check to see if target user exists 48 48 if (!(tmu = myuser_find_ext(target))) 49 49 { 50 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 50 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 51 51 return; 52 52 } 53 53
+1 -1
modules/memoserv/ignore.c
··· 52 52 // Does the target account exist? 53 53 if (!(tmu = myuser_find_ext(parv[0]))) 54 54 { 55 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), parv[0]); 55 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 56 56 return; 57 57 } 58 58 newnick = entity(tmu)->name;
+1 -1
modules/memoserv/send.c
··· 81 81 if (!(tmu = myuser_find_ext(target))) 82 82 { 83 83 command_fail(si, fault_nosuch_target, 84 - "\2%s\2 is not registered.", target); 84 + STR_IS_NOT_REGISTERED, target); 85 85 86 86 return; 87 87 }
+1 -1
modules/memoserv/sendgroup.c
··· 76 76 mg = group(myentity_find(target)); 77 77 if (mg == NULL) 78 78 { 79 - command_fail(si, fault_nosuch_target, "Group \2%s\2 is not registered.", target); 79 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 80 80 return; 81 81 } 82 82
+2 -2
modules/memoserv/sendops.c
··· 76 76 77 77 if (mc == NULL) 78 78 { 79 - command_fail(si, fault_nosuch_target, "Channel \2%s\2 is not registered.", target); 79 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 80 80 return; 81 81 } 82 82 ··· 86 86 operoverride = true; 87 87 else 88 88 { 89 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 89 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 90 90 return; 91 91 } 92 92 }
+4 -4
modules/nickserv/access.c
··· 196 196 mu = si->smu; 197 197 if (mu == NULL) 198 198 { 199 - command_fail(si, fault_noprivs, _("You are not logged in.")); 199 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 200 200 return; 201 201 } 202 202 } ··· 210 210 211 211 if (!(mu = myuser_find_ext(parv[1]))) 212 212 { 213 - command_fail(si, fault_badparams, _("\2%s\2 is not registered."), parv[1]); 213 + command_fail(si, fault_badparams, STR_IS_NOT_REGISTERED, parv[1]); 214 214 return; 215 215 } 216 216 } ··· 248 248 mask = parv[1]; 249 249 if (mu == NULL) 250 250 { 251 - command_fail(si, fault_noprivs, _("You are not logged in.")); 251 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 252 252 return; 253 253 } 254 254 if (mask[0] == '*' && mask[1] == '!') ··· 381 381 mu = si->smu; 382 382 if (mu == NULL) 383 383 { 384 - command_fail(si, fault_noprivs, _("You are not logged in.")); 384 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 385 385 return; 386 386 } 387 387 if ((mask = myuser_access_find(mu, parv[1])) == NULL)
+1 -1
modules/nickserv/badmail.c
··· 105 105 106 106 if (si->smu == NULL) 107 107 { 108 - command_fail(si, fault_noprivs, _("You are not logged in.")); 108 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 109 109 return; 110 110 } 111 111
+6 -6
modules/nickserv/cert.c
··· 31 31 mu = si->smu; 32 32 if (mu == NULL) 33 33 { 34 - command_fail(si, fault_noprivs, _("You are not logged in.")); 34 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 35 35 return; 36 36 } 37 37 } ··· 45 45 46 46 if (!(mu = myuser_find_ext(parv[1]))) 47 47 { 48 - command_fail(si, fault_badparams, _("\2%s\2 is not registered."), parv[1]); 48 + command_fail(si, fault_badparams, STR_IS_NOT_REGISTERED, parv[1]); 49 49 return; 50 50 } 51 51 } ··· 73 73 mu = si->smu; 74 74 if (mu == NULL) 75 75 { 76 - command_fail(si, fault_noprivs, _("You are not logged in.")); 76 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 77 77 return; 78 78 } 79 79 } ··· 87 87 88 88 if (!(mu = myuser_find_ext(parv[1]))) 89 89 { 90 - command_fail(si, fault_badparams, _("\2%s\2 is not registered."), parv[1]); 90 + command_fail(si, fault_badparams, STR_IS_NOT_REGISTERED, parv[1]); 91 91 return; 92 92 } 93 93 } ··· 128 128 129 129 if (mu == NULL) 130 130 { 131 - command_fail(si, fault_noprivs, _("You are not logged in.")); 131 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 132 132 return; 133 133 } 134 134 ··· 164 164 mu = si->smu; 165 165 if (mu == NULL) 166 166 { 167 - command_fail(si, fault_noprivs, _("You are not logged in.")); 167 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 168 168 return; 169 169 } 170 170 cert = mycertfp_find(parv[1]);
+2 -2
modules/nickserv/drop.c
··· 39 39 } 40 40 } 41 41 42 - (void) command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), acc); 42 + (void) command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, acc); 43 43 return; 44 44 } 45 45 ··· 152 152 } 153 153 } 154 154 155 - (void) command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), acc); 155 + (void) command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, acc); 156 156 return; 157 157 } 158 158
+1 -1
modules/nickserv/freeze.c
··· 56 56 57 57 if (!mu) 58 58 { 59 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 59 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 60 60 return; 61 61 } 62 62
+4 -4
modules/nickserv/group.c
··· 18 18 19 19 if (si->su == NULL) 20 20 { 21 - command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "GROUP"); 21 + command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "GROUP"); 22 22 return; 23 23 } 24 24 ··· 92 92 mn = mynick_find(target); 93 93 if (mn == NULL) 94 94 { 95 - command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), target); 95 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 96 96 return; 97 97 } 98 98 if (mn->owner != si->smu) ··· 133 133 mn = mynick_find(parv[0]); 134 134 if (mn == NULL) 135 135 { 136 - command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), parv[0]); 136 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 137 137 return; 138 138 } 139 139 mu = mn->owner; ··· 160 160 mn2 = mynick_find(parv[1]); 161 161 if (mn2 == NULL) 162 162 { 163 - command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), parv[1]); 163 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[1]); 164 164 return; 165 165 } 166 166 if (mn2 == mn)
+1 -1
modules/nickserv/hold.c
··· 35 35 36 36 if (!(mu = myuser_find_ext(target))) 37 37 { 38 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 38 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 39 39 return; 40 40 } 41 41
+1 -1
modules/nickserv/identify.c
··· 32 32 33 33 if (si->su == NULL) 34 34 { 35 - command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), COMMAND_UC); 35 + command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, COMMAND_UC); 36 36 return; 37 37 } 38 38
+1 -1
modules/nickserv/info.c
··· 80 80 } 81 81 else { 82 82 hook_call_user_info_noexist(&noexist_req); 83 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), name); 83 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name); 84 84 } 85 85 return; 86 86 }
+2 -2
modules/nickserv/listchans.c
··· 33 33 34 34 if (mu == NULL) 35 35 { 36 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 36 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 37 37 return; 38 38 } 39 39 } ··· 42 42 mu = si->smu; 43 43 if (mu == NULL) 44 44 { 45 - command_fail(si, fault_noprivs, _("You are not logged in.")); 45 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 46 46 return; 47 47 } 48 48 }
+2 -2
modules/nickserv/listgroups.c
··· 33 33 34 34 if (mu == NULL) 35 35 { 36 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 36 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 37 37 return; 38 38 } 39 39 } ··· 42 42 mu = si->smu; 43 43 if (mu == NULL) 44 44 { 45 - command_fail(si, fault_noprivs, _("You are not logged in.")); 45 + command_fail(si, fault_noprivs, STR_NOT_LOGGED_IN); 46 46 return; 47 47 } 48 48 }
+1 -1
modules/nickserv/logout.c
··· 20 20 21 21 if ((!si->smu) && (!user || !pass)) 22 22 { 23 - command_fail(si, fault_nochange, _("You are not logged in.")); 23 + command_fail(si, fault_nochange, STR_NOT_LOGGED_IN); 24 24 return; 25 25 } 26 26
+1 -1
modules/nickserv/mark.c
··· 64 64 command_success_nodata(si, _("\2%s\2 is now unmarked."), target); 65 65 return; 66 66 } 67 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 67 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 68 68 return; 69 69 } 70 70
+1 -1
modules/nickserv/multimark.c
··· 769 769 770 770 if (!(mu = myuser_find_ext(target)) && strcasecmp(action, "LIST")) 771 771 { 772 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 772 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 773 773 return; 774 774 } 775 775
+1 -1
modules/nickserv/regnolimit.c
··· 35 35 36 36 if (!(mu = myuser_find_ext(target))) 37 37 { 38 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 38 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 39 39 return; 40 40 } 41 41
+1 -1
modules/nickserv/resetpass.c
··· 26 26 27 27 if (!(mu = myuser_find_by_nick(name))) 28 28 { 29 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), name); 29 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name); 30 30 return; 31 31 } 32 32
+1 -1
modules/nickserv/restrict.c
··· 78 78 79 79 if (!(mu = myuser_find_ext(target))) 80 80 { 81 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 81 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 82 82 return; 83 83 } 84 84
+1 -1
modules/nickserv/return.c
··· 29 29 30 30 if (!(mu = myuser_find(target))) 31 31 { 32 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 32 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 33 33 return; 34 34 } 35 35
+1 -1
modules/nickserv/sendpass.c
··· 52 52 53 53 if (!(mu = myuser_find_by_nick(name))) 54 54 { 55 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), name); 55 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name); 56 56 return; 57 57 } 58 58
+2 -2
modules/nickserv/sendpass_user.c
··· 36 36 { 37 37 if (!has_priv(si, PRIV_USER_SENDPASS)) 38 38 { 39 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 39 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 40 40 return; 41 41 } 42 42 else if (!strcasecmp(parv[1], "FORCE")) ··· 53 53 54 54 if (!(mu = myuser_find_by_nick(name))) 55 55 { 56 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), name); 56 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, name); 57 57 return; 58 58 } 59 59
+1 -1
modules/nickserv/set_accountname.c
··· 42 42 mn = mynick_find(newname); 43 43 if (mn == NULL) 44 44 { 45 - command_fail(si, fault_nosuch_target, _("Nick \2%s\2 is not registered."), newname); 45 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, newname); 46 46 return; 47 47 } 48 48 if (mn->owner != si->smu)
+1 -1
modules/nickserv/setpass.c
··· 34 34 35 35 if (!(mu = myuser_find(nick))) 36 36 { 37 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), nick); 37 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, nick); 38 38 return; 39 39 } 40 40
+1 -1
modules/nickserv/status.c
··· 73 73 logcommand(si, CMDLOG_GET, "STATUS"); 74 74 75 75 if (!si->smu) 76 - command_success_nodata(si, _("You are not logged in.")); 76 + command_success_nodata(si, STR_NOT_LOGGED_IN); 77 77 else 78 78 { 79 79 command_success_nodata(si, _("You are logged in as \2%s\2."), entity(si->smu)->name);
+1 -1
modules/nickserv/taxonomy.c
··· 29 29 30 30 if (!(mu = myuser_find_ext(target))) 31 31 { 32 - command_fail(si, fault_badparams, _("\2%s\2 is not registered."), target); 32 + command_fail(si, fault_badparams, STR_IS_NOT_REGISTERED, target); 33 33 return; 34 34 } 35 35
+2 -2
modules/nickserv/verify.c
··· 29 29 30 30 if (!(mu = myuser_find(nick))) 31 31 { 32 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), nick); 32 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, nick); 33 33 return; 34 34 } 35 35 ··· 147 147 148 148 if (!(mu = myuser_find_ext(nick))) 149 149 { 150 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), nick); 150 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, nick); 151 151 return; 152 152 } 153 153
+1 -1
modules/nickserv/vhost.c
··· 56 56 // find the user... 57 57 if (!(mu = myuser_find_ext(target))) 58 58 { 59 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), target); 59 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, target); 60 60 return; 61 61 } 62 62
+1 -1
modules/operserv/identify.c
··· 25 25 // XXX use this with authcookie also 26 26 if (si->su == NULL) 27 27 { 28 - command_fail(si, fault_noprivs, _("\2%s\2 can only be executed via IRC."), "IDENTIFY"); 28 + command_fail(si, fault_noprivs, STR_IRC_COMMAND_ONLY, "IDENTIFY"); 29 29 return; 30 30 } 31 31
+4 -4
modules/operserv/soper.c
··· 16 16 { 17 17 if (! has_any_privs(si)) 18 18 { 19 - (void) command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 19 + (void) command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 20 20 return; 21 21 } 22 22 ··· 93 93 mu = myuser_find_ext(parv[0]); 94 94 if (mu == NULL) 95 95 { 96 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), parv[0]); 96 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 97 97 return; 98 98 } 99 99 ··· 162 162 mu = myuser_find_ext(parv[0]); 163 163 if (mu == NULL) 164 164 { 165 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), parv[0]); 165 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 166 166 return; 167 167 } 168 168 ··· 208 208 mu = myuser_find_ext(parv[0]); 209 209 if (mu == NULL) 210 210 { 211 - command_fail(si, fault_nosuch_target, _("\2%s\2 is not registered."), parv[0]); 211 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 212 212 return; 213 213 } 214 214
+2 -2
modules/rpgserv/enable.c
··· 26 26 mc = mychan_find(chan); 27 27 if (!mc) 28 28 { 29 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 29 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 30 30 return; 31 31 } 32 32 ··· 57 57 mc = mychan_find(chan); 58 58 if (!mc) 59 59 { 60 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 60 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 61 61 return; 62 62 } 63 63
+1 -1
modules/rpgserv/info.c
··· 27 27 mc = mychan_find(parv[0]); 28 28 if (!mc) 29 29 { 30 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), parv[0]); 30 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, parv[0]); 31 31 return; 32 32 } 33 33
+2 -2
modules/rpgserv/set.c
··· 180 180 mc = mychan_find(chan); 181 181 if (!mc) 182 182 { 183 - command_fail(si, fault_nosuch_target, _("Channel \2%s\2 is not registered."), chan); 183 + command_fail(si, fault_nosuch_target, STR_IS_NOT_REGISTERED, chan); 184 184 return; 185 185 } 186 186 187 187 if (!chanacs_source_has_flag(mc, si, CA_SET)) 188 188 { 189 - command_fail(si, fault_noprivs, _("You are not authorized to perform this operation.")); 189 + command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 190 190 return; 191 191 } 192 192
+1 -1
modules/statserv/channel.c
··· 45 45 46 46 if (c->modes & CMODE_SEC) 47 47 { 48 - (void) command_fail(si, fault_noprivs, _("You are not authorised to perform this action.")); 48 + (void) command_fail(si, fault_noprivs, STR_NOT_AUTHORIZED); 49 49 return; 50 50 } 51 51