diff options
author | Adam <Adam@anope.org> | 2011-08-10 21:19:42 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-10 21:19:42 -0400 |
commit | f83096c729c0f3f33ab0a0dfc019e6bad8aa30bc (patch) | |
tree | 7f5fdf0304e75429b994a5ed208bd45447d04ad3 /src | |
parent | eb7c9d0a863089ed9dc5c428c1d1214c8f0b85ba (diff) |
Fixed loading bs_fantasy_owner on startup when using InspIRCd 2.0
Diffstat (limited to 'src')
-rw-r--r-- | src/core/bs_fantasy_owner.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core/bs_fantasy_owner.c b/src/core/bs_fantasy_owner.c index c94fc1052..f41965bfc 100644 --- a/src/core/bs_fantasy_owner.c +++ b/src/core/bs_fantasy_owner.c @@ -31,12 +31,6 @@ int AnopeInit(int argc, char **argv) (VERSION_STRING); moduleSetType(CORE); - /* No need to load of we don't support owner */ - if (!ircd->owner) { - alog("Your ircd doesn't support the owner channelmode; bs_fantasy_owner won't be loaded"); - return MOD_STOP; - } - hook = createEventHook(EVENT_BOT_FANTASY, do_fantasy); moduleAddEventHook(hook); @@ -62,7 +56,7 @@ int do_fantasy(int argc, char **argv) User *u; ChannelInfo *ci; - if (argc < 3) + if (argc < 3 || !ircd->owner) return MOD_CONT; if (stricmp(argv[0], "deowner") == 0) { |