]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Fixes to /modules output (found by typobox43)
[user/henk/code/inspircd.git] / src / inspircd.cpp
index 3b11f8d1695ee8bf89d0f926f54ae9b2191b30c2..8c3080a563225150db75baff208e0712623cedf6 100644 (file)
@@ -3419,6 +3419,7 @@ void Error(int status)
        exit(status);
 }
 
+
 int main (int argc, char *argv[])
 {
        Start();
@@ -3645,7 +3646,7 @@ void handle_privmsg(char **parameters, int pcnt, userrec *user)
                        
                        int MOD_RESULT = 0;
 
-                       FOREACH_RESULT(OnUserPreMessage(user,chan,TYPE_USER,std::string(parameters[1])));
+                       FOREACH_RESULT(OnUserPreMessage(user,chan,TYPE_CHANNEL,std::string(parameters[1])));
                        if (MOD_RESULT) {
                                return;
                        }
@@ -4298,7 +4299,7 @@ void handle_modules(char **parameters, int pcnt, userrec *user)
        for (int i = 0; i < module_names.size(); i++)
        {
                        Version V = modules[i]->GetVersion();
-                       WriteServ(user->fd,"900 0x%08lx %d.%d.%d.%d :%s",modules[i],V.Major,V.Minor,V.Revision,V.Build,module_names[i].c_str());
+                       WriteServ(user->fd,"900 %s :0x%08lx %d.%d.%d.%d %s",user->nick,modules[i],V.Major,V.Minor,V.Revision,V.Build,module_names[i].c_str());
        }
 }