1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 03:46:39 +02:00

Fix setname handler on unreal

This commit is contained in:
Adam
2014-01-25 17:58:20 -05:00
parent 4d3363f83f
commit 01780c9e7a
+3 -4
View File
@@ -984,13 +984,12 @@ struct IRCDMessageSetIdent : IRCDMessage
struct IRCDMessageSetName : IRCDMessage
{
IRCDMessageSetName(Module *creator) : IRCDMessage(creator, "SETNAME", 1) { }
IRCDMessageSetName(Module *creator) : IRCDMessage(creator, "SETNAME", 1) { SetFlag(IRCDMESSAGE_REQUIRE_USER); }
void Run(MessageSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = User::Find(params[0]);
if (u)
u->SetRealname(params[1]);
User *u = source.GetUser();
u->SetRealname(params[0]);
}
};