* note: it is guaranteed that parv[0]..parv[parc-1] are all
* non-NULL pointers.
*/
-#if 0
-/*
- * No need to include handlers.h here the signatures must match
- * and we don't need to force a rebuild of all the handlers everytime
- * we add a new one to the list. --Bleep
- */
#include "handlers.h"
-#endif /* 0 */
#include "client.h"
#include "ircd.h"
#include "ircd_chattr.h"
#include <stdlib.h>
#include <string.h>
-#define UFLAGS (FLAGS_INVISIBLE|FLAGS_SERVNOTICE)
-
/*
* m_user
*
* parv[0] = sender prefix
* parv[1] = username (login name, account)
- * parv[2] = umode mask (host name)
- * parv[3] = server notice mask (server name)
+ * parv[2] = host name (ignored)
+ * parv[3] = server name (ignored)
* parv[4] = users real name info
*/
int m_user(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
{
char* username;
- const char* umode;
- const char* snomask;
const char* info;
struct User* user;
else
username = "NoUser";
- umode = (EmptyString(parv[2])) ? "." : parv[2];
- snomask = (EmptyString(parv[3])) ? "." : parv[3];
info = (EmptyString(parv[4])) ? "No Info" : parv[4];
user = make_user(cptr);
- if (!strchr(umode, '.')) /* Not an IP# as hostname ? */
- cli_flags(cptr) |= (UFLAGS & atoi(umode));
-
- if ((cli_flags(cptr) & FLAGS_SERVNOTICE))
- set_snomask(cptr, (IsDigit(*snomask) && !strchr(snomask, '.')) ?
- (atoi(snomask) & SNO_USER) : SNO_DEFAULT, SNO_SET);
-
user->server = &me;
ircd_strncpy(cli_info(cptr), info, REALLEN);