summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/chat.cpp2
-rw-r--r--src/net/chatserver/chatserver.cpp5
-rw-r--r--src/net/protocol.h6
3 files changed, 8 insertions, 5 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index f6e95059..a0e7f036 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -333,7 +333,7 @@ void ChatWindow::chatSend(std::string const &nick, std::string const &msg,
else if (command == "register")
{
chatLog("Requesting to register channel " + arg, BY_SERVER);
- Net::ChatServer::registerChannel(arg, "", "", false);
+ Net::ChatServer::registerChannel(arg, "", "");
}
else if (command == "join")
{
diff --git a/src/net/chatserver/chatserver.cpp b/src/net/chatserver/chatserver.cpp
index 67cb5796..9f2c871a 100644
--- a/src/net/chatserver/chatserver.cpp
+++ b/src/net/chatserver/chatserver.cpp
@@ -81,12 +81,9 @@ void Net::ChatServer::privMsg(const std::string &recipient,
}
void Net::ChatServer::registerChannel(const std::string &name,
- const std::string &announcement, const std::string &password,
- char isPrivate)
+ const std::string &announcement, const std::string &password)
{
MessageOut msg(PCMSG_REGISTER_CHANNEL);
-
- msg.writeInt8(isPrivate);
msg.writeString(name);
msg.writeString(announcement);
msg.writeString(password);
diff --git a/src/net/protocol.h b/src/net/protocol.h
index 79e1f2ca..5aab202c 100644
--- a/src/net/protocol.h
+++ b/src/net/protocol.h
@@ -147,6 +147,12 @@ enum {
CPMSG_GUILD_INVITED = 0x0370, // S char name, S guild name, W id
CPMSG_GUILD_REJOIN = 0x0371, // S name, W guild, B rights, W channel
+ // Party
+ PCMSG_PARTY_CREATE = 0x03A0, // -
+ CPMSG_PARTY_CREATE_RESPONSE = 0x03A1, // B error
+ PCMSG_PARTY_QUIT = 0x03AA, // -
+ CPMSG_PARTY_QUIT_RESPONSE = 0x03AB, // B error
+
// Chat
CPMSG_ERROR = 0x0401, // B error
CPMSG_ANNOUNCEMENT = 0x0402, // S text