From feee50e6959171123773417caab73ecad3af824b Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 12 Aug 2011 03:13:56 -0400 Subject: Allow bot usermodes to be configurable --- modules/protocol/unreal.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/protocol/unreal.cpp') diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp index 4f8bc5e6f..60419c481 100644 --- a/modules/protocol/unreal.cpp +++ b/modules/protocol/unreal.cpp @@ -140,11 +140,10 @@ class UnrealIRCdProto : public IRCDProto send_cmd(bi ? bi->nick : Config->ServerName, "v %s %s", u->nick.c_str(), buf.c_str()); } - void SendClientIntroduction(const User *u, const Anope::string &modes) + void SendClientIntroduction(const User *u) { - XLine x(u->nick, "Reserved for services"); - ircdproto->SendSQLine(NULL, &x); - send_cmd("", "& %s 1 %ld %s %s %s 0 %s %s * :%s", u->nick.c_str(), static_cast(u->timestamp), u->GetIdent().c_str(), u->host.c_str(), Config->ServerName.c_str(), modes.c_str(), u->host.c_str(), u->realname.c_str()); + Anope::string modes = "+" + u->GetModes(); + send_cmd("", "& %s 1 %ld %s %s %s 0 %s %s * :%s", u->nick.c_str(), static_cast(u->timestamp), u->GetIdent().c_str(), u->host.c_str(), u->server->GetName().c_str(), modes.c_str(), u->host.c_str(), u->realname.c_str()); } void SendKickInternal(const BotInfo *source, const Channel *chan, const User *user, const Anope::string &buf) -- cgit