X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_who.cpp;h=66a94cfd668bc6eec514e7dae82032624c287d76;hb=cd7657bddc7a6dc2e7326077d173a874bf71f6bd;hp=bdbca597e4bd270c7be5fff65d19bbd09efda39e;hpb=e6fa614ad27cd68aa61605ca0884eee9c44384eb;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index bdbca597e..66a94cfd6 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -11,6 +11,7 @@ * --------------------------------------------------- */ +#include "inspircd.h" #include "configreader.h" #include "users.h" #include "modules.h" @@ -110,7 +111,7 @@ bool cmd_who::whomatch(userrec* user, const char* matchtext) -extern "C" command_t* init_command(InspIRCd* Instance) +extern "C" DllExport command_t* init_command(InspIRCd* Instance) { return new cmd_who(Instance); } @@ -147,7 +148,7 @@ void cmd_who::SendWhoLine(userrec* user, const std::string &initial, chanrec* ch " " + u->nick + " "; /* away? */ - if (*u->awaymsg) + if (IS_AWAY(u)) { wholine.append("G"); }