]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_userhost.cpp
Add strerror(errno) to port bind failure on TreeSocket
[user/henk/code/inspircd.git] / src / cmd_userhost.cpp
index c124b24d33352bd80d96168dd21a9b3a0e7363bd..28bba1e7f5d31fc0332594cc18b83ac6aa4a31b1 100644 (file)
@@ -2,12 +2,9 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- *                       E-mail:
- *                <brain@chatspike.net>
- *                <Craig@chatspike.net>
+ *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
  *
- * Written by Craig Edwards, Craig McLure, and others.
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
  *
@@ -25,7 +22,7 @@ extern "C" command_t* init_command(InspIRCd* Instance)
        return new cmd_userhost(Instance);
 }
 
-void cmd_userhost::Handle (const char** parameters, int pcnt, userrec *user)
+CmdResult cmd_userhost::Handle (const char** parameters, int pcnt, userrec *user)
 {
        char Return[MAXBUF],junk[MAXBUF];
        snprintf(Return,MAXBUF,"302 %s :",user->nick);
@@ -50,4 +47,6 @@ void cmd_userhost::Handle (const char** parameters, int pcnt, userrec *user)
                }
        }
        user->WriteServ(Return);
+
+       return CMD_SUCCESS;
 }