]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_who.cpp
Changed m_sqlauth to allow more advanced encryption types
[user/henk/code/inspircd.git] / src / cmd_who.cpp
index 307e86d915614b10a8aaaa2533b5e4a5685b2d7f..d82b7906f46a6ed19323a8aa1cd55c1d4ef9ec46 100644 (file)
@@ -17,7 +17,6 @@
 using namespace std;
 
 #include "inspircd_config.h"
-#include "inspircd.h"
 #include "inspircd_io.h"
 #include <time.h>
 #include <string>
@@ -47,6 +46,7 @@ using namespace std;
 #include "socketengine.h"
 #include "typedefs.h"
 #include "command_parse.h"
+#include "inspircd.h"
 #include "cmd_who.h"
 
 extern ServerConfig* Config;
@@ -57,7 +57,6 @@ extern std::vector<ircd_module*> factory;
 extern time_t TIME;
 extern user_hash clientlist;
 extern chan_hash chanlist;
-extern whowas_hash whowas;
 extern std::vector<userrec*> all_opers;
 extern std::vector<userrec*> local_users;
 extern userrec* fd_ref_table[MAX_DESCRIPTORS];
@@ -70,7 +69,7 @@ void cmd_who::Handle (char **parameters, int pcnt, userrec *user)
        /* theres more to do here, but for now just close the socket */
        if (pcnt == 1)
        {
-               if ((IS_SINGLE(parameters[0],'0)) || (IS_SINGLE(parameters[0],'*')))
+               if ((IS_SINGLE(parameters[0],'0')) || (IS_SINGLE(parameters[0],'*')))
                {
                        if ((user->chans.size()) && (user->chans[0].channel))
                        {