Skip to content

Commit

Permalink
Stop non-Tasks from exploding the plugin enumeration using the Task a…
Browse files Browse the repository at this point in the history
…ttribute
  • Loading branch information
colourblind committed Nov 16, 2010
1 parent 5c2a136 commit c79191b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OhTehNoes/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static void LoadPlugins(Logger logger)
foreach (Type type in assembly.GetTypes())
{
object[] attributes = type.GetCustomAttributes(typeof(TaskAttribute), true);
if (attributes != null)
if (type.IsSubclassOf(typeof(Task)) && attributes != null)
{
foreach (object attribute in attributes)
{
Expand Down

0 comments on commit c79191b

Please sign in to comment.