You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.registerCommand('sendraw', self.sendRawCmd, ['admin'], 0, 999, "<irccmd>", "Send a raw IRC cmd.")
201
202
self.registerCommand('shutdown', self.killSelf, ['admin'], 0, 0, "", "Kills the bot.")
202
203
self.registerCommand('restart', self.restart, ['admin'], 0, 0, '', 'Restarts the bot.')
204
+
self.registerCommand('readonly', self.setReadOnly, ['admin'], 1, 1, '[true|false]', 'Sets Read-Only Mode for commands that are able to set data.')
203
205
204
206
self.registerCommand('help', self.helpcmd, ['any'], 0, 1, "[<command>|*]", "Lists available commands or help about a specific command.", allowpub=True)
self.registerCommand('testcsv', self.getTestCSVURL, ['any', 'mcp_team'], 0, 1, "", "Gets the URL for the running export of staged changes.", allowpub=True)
61
61
self.registerCommand('exports', self.getExportsURL, ['any'], 0, 0, '', 'Gets the URL where all mapping exports can be found.', allowpub=True)
62
62
self.registerCommand('latest', self.getLatestMappingVersion, ['any'], 0, 2, '[snapshot|stable] [<mcversion>]', 'Gets a list of the latest mapping versions.', allowpub=True)
63
-
self.registerCommand('commit', self.commitMappings,['mcp_team'], 0, 1, '[<srg_name>|method|field|param]', 'Commits staged mapping changes. If SRG name is specified only that member will be committed. If method/field/param is specified only that member type will be committed. Give no arguments to commit all staged changes.')
63
+
self.registerCommand('commit', self.commitMappings,['mcp_team'], 0, 1, '[<srg_name>|method|field|param]', 'Commits staged mapping changes. If SRG name is specified only that member will be committed. If method/field/param is specified only that member type will be committed. Give no arguments to commit all staged changes.', readonly=False)
64
64
self.registerCommand('maventime',self.setMavenTime,['mcp_team'], 1, 1, '<HH:MM>', 'Changes the time that the Maven upload will occur using 24 hour clock format.')
65
65
66
66
self.registerCommand('gc', self.getClass, ['any'], 1, 2, "<class> [<version>]", "Returns class information. Defaults to current version. Version can be for MCP or MC.", allowpub=True)
self.registerCommand('uf', self.listMembers,['any'], 1, 1, "<class>", "Returns a list of unnamed fields for a given class. Use DCC if the list is long.", allowpub=True)
84
84
self.registerCommand('um', self.listMembers,['any'], 1, 1, "<class>", "Returns a list of unnamed methods for a given class. Use DCC if the list is long.", allowpub=True)
85
85
self.registerCommand('up', self.listMembers,['any'], 1, 1, "<class>", "Returns a list of unnamed method parameters for a given class. Use DCC if the list is long.", allowpub=True)
86
-
self.registerCommand('undo', self.undoChange, ['any', 'undo_any', 'mcp_team'], 1, 1, "<srg name>", "Undoes the last *STAGED* name change to a given method/field/param. By default you can only undo your own changes.")
87
-
self.registerCommand('redo', self.undoChange, ['any', 'undo_any', 'mcp_team'], 1, 1, "<srg name>", "Redoes the last *UNDONE* staged change to a given method/field/param. By default you can only redo your own changes.")
88
-
89
-
self.registerCommand('sf', self.setMember, ['any'], 2, 999, "<srg name> <new name> [<comment>]", "Sets the MCP name and comment for the SRG field specified. SRG index can also be used.", allowpub=True)
90
-
self.registerCommand('fsf', self.setMember, ['maintainer', 'mcp_team'], 2, 999, "<srg name> <new name> [<comment>]", "Force sets the MCP name and comment for the SRG field specified. SRG index can also be used.", allowpub=True)
91
-
self.registerCommand('sm', self.setMember, ['any'], 2, 999, "<srg name> <new name> [<comment>]", "Sets the MCP name and comment for the SRG method specified. SRG index can also be used.", allowpub=True)
92
-
self.registerCommand('fsm', self.setMember, ['maintainer', 'mcp_team'], 2, 999, "<srg name> <new name> [<comment>]", "Force sets the MCP name and comment for the SRG method specified. SRG index can also be used.", allowpub=True)
93
-
self.registerCommand('sp', self.setMember, ['any'], 2, 999, "<srg name> <new name> [<comment>]", "Sets the MCP name and comment for the SRG method parameter specified. SRG index can also be used.", allowpub=True)
94
-
self.registerCommand('fsp', self.setMember, ['maintainer', 'mcp_team'], 2, 999, "<srg name> <new name> [<comment>]", "Force sets the MCP name and comment for the SRG method parameter specified. SRG index can also be used.", allowpub=True)
95
-
96
-
self.registerCommand('lock', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Locks the given field/method/parameter from being edited. Full SRG name must be used.")
97
-
self.registerCommand('lockf', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Locks the given field from being edited. SRG index can also be used.")
98
-
self.registerCommand('lockm', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Locks the given method from being edited. SRG index can also be used.")
99
-
self.registerCommand('lockp', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Locks the given method parameter from being edited. SRG index can also be used.")
100
-
self.registerCommand('unlock', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Unlocks the given field/method/parameter to allow editing. Full SRG name must be used.")
101
-
self.registerCommand('unlockf', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Unlocks the given field to allow editing. SRG index can also be used.")
102
-
self.registerCommand('unlockm', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Unlocks the given method to allow editing. SRG index can also be used.")
103
-
self.registerCommand('unlockp', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Unlocks the given method parameter to allow editing. SRG index can also be used.")
86
+
self.registerCommand('undo', self.undoChange, ['any', 'undo_any', 'mcp_team'], 1, 1, "<srg name>", "Undoes the last *STAGED* name change to a given method/field/param. By default you can only undo your own changes.", readonly=False)
87
+
self.registerCommand('redo', self.undoChange, ['any', 'undo_any', 'mcp_team'], 1, 1, "<srg name>", "Redoes the last *UNDONE* staged change to a given method/field/param. By default you can only redo your own changes.", readonly=False)
88
+
89
+
self.registerCommand('sf', self.setMember, ['any'], 2, 999, "<srg name> <new name> [<comment>]", "Sets the MCP name and comment for the SRG field specified. SRG index can also be used.", allowpub=True, readonly=False)
90
+
self.registerCommand('fsf', self.setMember, ['maintainer', 'mcp_team'], 2, 999, "<srg name> <new name> [<comment>]", "Force sets the MCP name and comment for the SRG field specified. SRG index can also be used.", allowpub=True, readonly=False)
91
+
self.registerCommand('sm', self.setMember, ['any'], 2, 999, "<srg name> <new name> [<comment>]", "Sets the MCP name and comment for the SRG method specified. SRG index can also be used.", allowpub=True, readonly=False)
92
+
self.registerCommand('fsm', self.setMember, ['maintainer', 'mcp_team'], 2, 999, "<srg name> <new name> [<comment>]", "Force sets the MCP name and comment for the SRG method specified. SRG index can also be used.", allowpub=True, readonly=False)
93
+
self.registerCommand('sp', self.setMember, ['any'], 2, 999, "<srg name> <new name> [<comment>]", "Sets the MCP name and comment for the SRG method parameter specified. SRG index can also be used.", allowpub=True, readonly=False)
94
+
self.registerCommand('fsp', self.setMember, ['maintainer', 'mcp_team'], 2, 999, "<srg name> <new name> [<comment>]", "Force sets the MCP name and comment for the SRG method parameter specified. SRG index can also be used.", allowpub=True, readonly=False)
95
+
96
+
self.registerCommand('lock', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Locks the given field/method/parameter from being edited. Full SRG name must be used.", readonly=False)
97
+
self.registerCommand('lockf', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Locks the given field from being edited. SRG index can also be used.", readonly=False)
98
+
self.registerCommand('lockm', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Locks the given method from being edited. SRG index can also be used.", readonly=False)
99
+
self.registerCommand('lockp', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Locks the given method parameter from being edited. SRG index can also be used.", readonly=False)
100
+
self.registerCommand('unlock', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Unlocks the given field/method/parameter to allow editing. Full SRG name must be used.", readonly=False)
101
+
self.registerCommand('unlockf', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Unlocks the given field to allow editing. SRG index can also be used.", readonly=False)
102
+
self.registerCommand('unlockm', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Unlocks the given method to allow editing. SRG index can also be used.", readonly=False)
103
+
self.registerCommand('unlockp', self.setLocked, ['lock_control', 'mcp_team'], 1, 1, "<srg name>", "Unlocks the given method parameter to allow editing. SRG index can also be used.", readonly=False)
0 commit comments