1
1
Fork 0
mirror of https://github.com/vicious-widgets/vicious synced 2023-12-14 07:13:07 +01:00

Disallow using a string widget type.

This commit is contained in:
Adrian C. (anrxc) 2009-08-05 19:20:32 +02:00
parent 756215f020
commit 22033bae53

View file

@ -110,11 +110,6 @@ function register(widget, wtype, format, timer, field, padd)
reg.timer = 1
end
-- Allow using a string widget type
if type(reg.type) == "string" then
reg.type = widgets[reg.type]
end
-- Register reg object
regregister(reg)