* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: m_user.c 1459 2006-05-26 20:50:41Z jilles $
+ * $Id: m_user.c 3416 2007-04-15 20:18:54Z jilles $
*/
#include "stdinc.h"
#include "client.h"
-#include "irc_string.h"
+#include "match.h"
#include "ircd.h"
#include "numeric.h"
#include "s_user.h"
#include "msg.h"
#include "parse.h"
#include "modules.h"
-#include "sprintf_irc.h"
#include "blacklist.h"
-
-#define UFLAGS (FLAGS_INVISIBLE|FLAGS_WALLOP|FLAGS_SERVNOTICE)
+#include "s_assert.h"
static int mr_user(struct Client *, struct Client *, int, const char **);
};
mapi_clist_av1 user_clist[] = { &user_msgtab, NULL };
-DECLARE_MODULE_AV1(user, NULL, NULL, user_clist, NULL, NULL, "$Revision: 1459 $");
+DECLARE_MODULE_AV1(user, NULL, NULL, user_clist, NULL, NULL, "$Revision: 3416 $");
static int do_local_user(struct Client *client_p, struct Client *source_p,
const char *username, const char *realname);
if((p = strchr(parv[1], '@')))
*p = '\0';
- ircsnprintf(buf, sizeof(buf), "%s %s", parv[2], parv[3]);
- MyFree(source_p->localClient->fullcaps);
- DupString(source_p->localClient->fullcaps, buf);
+ rb_snprintf(buf, sizeof(buf), "%s %s", parv[2], parv[3]);
+ rb_free(source_p->localClient->fullcaps);
+ source_p->localClient->fullcaps = rb_strdup(buf);
do_local_user(client_p, source_p, parv[1], parv[4]);
return 0;
do_local_user(struct Client *client_p, struct Client *source_p,
const char *username, const char *realname)
{
- struct User *user;
-
s_assert(NULL != source_p);
s_assert(source_p->username != username);
- user = make_user(source_p);
- user->server = me.name;
+ make_user(source_p);
if (!(source_p->flags & FLAGS_SENTUSER))
{
source_p->flags |= FLAGS_SENTUSER;
}
- strlcpy(source_p->info, realname, sizeof(source_p->info));
+ rb_strlcpy(source_p->info, realname, sizeof(source_p->info));
if(!IsGotId(source_p))
{
/* This is in this location for a reason..If there is no identd
* and ping cookies are enabled..we need to have a copy of this
*/
- strlcpy(source_p->username, username, sizeof(source_p->username));
+ rb_strlcpy(source_p->username, username, sizeof(source_p->username));
}
if(source_p->name[0])