Fixes brace style (#248)
This commit is contained in:
parent
a236617ad9
commit
8149620b0c
1503 changed files with 28575 additions and 1717 deletions
|
|
@ -19,9 +19,14 @@ namespace Server.Gumps
|
|||
public override void OnCancel(Mobile from)
|
||||
{
|
||||
if (GuildGump.BadLeader(m_Leader, m_Guild))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_Target.Deleted || !m_Guild.IsMember(m_Target))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
GuildGump.EnsureClosed(m_Leader);
|
||||
m_Leader.SendGump(new GuildmasterGump(m_Leader, m_Guild));
|
||||
|
|
@ -30,17 +35,26 @@ namespace Server.Gumps
|
|||
public override void OnResponse(Mobile from, string text)
|
||||
{
|
||||
if (GuildGump.BadLeader(m_Leader, m_Guild))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_Target.Deleted || !m_Guild.IsMember(m_Target))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
text = text.Trim();
|
||||
|
||||
if (text.Length > 20)
|
||||
{
|
||||
text = text.Substring(0, 20);
|
||||
}
|
||||
|
||||
if (text.Length > 0)
|
||||
{
|
||||
m_Target.GuildTitle = text;
|
||||
}
|
||||
|
||||
GuildGump.EnsureClosed(m_Leader);
|
||||
m_Leader.SendGump(new GuildmasterGump(m_Leader, m_Guild));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue