* ---------------------------------------------------
*/
+#include "inspircd.h"
#include "users.h"
#include "channels.h"
#include "modules.h"
-#include "inspircd.h"
#include "wildcard.h"
/* $ModDesc: Provides the /check command to retrieve information on a user, channel, or IP address */
user->WriteServ(checkstr + " modes +" + targuser->FormatModes());
user->WriteServ(checkstr + " snomasks +" + targuser->FormatNoticeMasks());
user->WriteServ(checkstr + " server " + targuser->server);
- if (targuser->awaymsg[0] != 0)
+
+ if (IS_AWAY(targuser))
{
/* user is away */
user->WriteServ(checkstr + " awaymsg " + targuser->awaymsg);
}
- if (targuser->oper[0] != 0)
+
+ if (IS_OPER(targuser))
{
/* user is an oper of type ____ */
user->WriteServ(checkstr + " opertype " + irc::Spacify(targuser->oper));
}
+
if (IS_LOCAL(targuser))
{
/* port information is only held for a local user! */
private:
cmd_check *mycommand;
public:
- ModuleCheck(InspIRCd* Me) : Module::Module(Me)
+ ModuleCheck(InspIRCd* Me) : Module(Me)
{
mycommand = new cmd_check(ServerInstance);
};
-extern "C" void * init_module( void )
+extern "C" DllExport void * init_module( void )
{
return new ModuleCheckFactory;
}