summaryrefslogtreecommitdiff
path: root/src/net/tmwa/beinghandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/beinghandler.cpp')
-rw-r--r--src/net/tmwa/beinghandler.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index 7f11598c5..113f0708e 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -1604,4 +1604,19 @@ void BeingHandler::processSkillCastCancel(Net::MessageIn &msg)
msg.readInt32("skill id");
}
+void BeingHandler::processIpResponse(Net::MessageIn &msg)
+{
+ BLOCK_START("BeingHandler::processIpResponse")
+ if (!actorManager)
+ {
+ BLOCK_END("BeingHandler::processIpResponse")
+ return;
+ }
+
+ Being *const dstBeing = actorManager->findBeing(msg.readInt32("being id"));
+ if (dstBeing)
+ dstBeing->setIp(ipToString(msg.readInt32("ip address")));
+ BLOCK_END("BeingHandler::processIpResponse")
+}
+
} // namespace TmwAthena