summaryrefslogtreecommitdiff
path: root/src/net/tmwa/partyrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/partyrecv.cpp')
-rw-r--r--src/net/tmwa/partyrecv.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/net/tmwa/partyrecv.cpp b/src/net/tmwa/partyrecv.cpp
index 1f5990377..3effb76e7 100644
--- a/src/net/tmwa/partyrecv.cpp
+++ b/src/net/tmwa/partyrecv.cpp
@@ -1,10 +1,10 @@
/*
- * The ManaPlus Client
+ * The ManaVerse Client
* Copyright (C) 2008 Lloyd Bryant <lloyd_bryant@netzero.net>
* Copyright (C) 2011-2020 The ManaPlus Developers
- * Copyright (C) 2020-2023 The ManaVerse Developers
+ * Copyright (C) 2020-2025 The ManaVerse Developers
*
- * This file is part of The ManaPlus Client.
+ * This file is part of The ManaVerse Client.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -237,15 +237,9 @@ void PartyRecv::processPartyInvited(Net::MessageIn &msg)
}
}
+ const std::string partyName = msg.readString(24, "party name");
if (socialWindow != nullptr)
- {
- const std::string partyName = msg.readString(24, "party name");
socialWindow->showPartyInvite(partyName, nick, 0);
- }
- else
- {
- msg.readString(24, "party name");
- }
}
void PartyRecv::processPartyMove(Net::MessageIn &msg)