InfoReg: Don't fail if there are no commands to register.
This commit is contained in:
parent
95b9a00eb5
commit
af4e88030b
@ -159,8 +159,10 @@ function RegisterPluginInfoCommands()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Loop through all commands in the plugin info, register each:
|
-- Loop through all commands in the plugin info, register each:
|
||||||
|
if (g_PluginInfo.Commands) then
|
||||||
RegisterSubcommands("", g_PluginInfo.Commands, 1)
|
RegisterSubcommands("", g_PluginInfo.Commands, 1)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -190,8 +192,10 @@ function RegisterPluginInfoConsoleCommands()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Loop through all commands in the plugin info, register each:
|
-- Loop through all commands in the plugin info, register each:
|
||||||
|
if (g_PluginInfo.ConsoleCommands) then
|
||||||
RegisterSubcommands("", g_PluginInfo.ConsoleCommands, 1)
|
RegisterSubcommands("", g_PluginInfo.ConsoleCommands, 1)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user