#include "wildcard.h"
#include "commands/cmd_privmsg.h"
-
-
-extern "C" command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport command_t* init_command(InspIRCd* Instance)
{
return new cmd_privmsg(Instance);
}
dest = ServerInstance->FindNick(parameters[0]);
if (dest)
{
- if ((IS_LOCAL(user)) && (*dest->awaymsg))
+ if (IS_AWAY(dest))
{
/* auto respond with aweh msg */
user->WriteServ("301 %s %s :%s",user->nick,dest->nick,dest->awaymsg);