summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Matthys <syzop@vulnscan.org>2023-02-08 11:44:21 +0100
committerSadie Powell <sadie@witchery.services>2023-02-09 16:05:50 +0000
commitfef0cc1c29984d8199393111b5f78ab63f749ea3 (patch)
tree9a81d69fee935bee933e054a77323d7aff993669
parentf0ad0b4f0a153f9ea28d7f34a6f7fd26b0e28cee (diff)
unreal4: set vhost/vident during SASL
-rw-r--r--modules/protocol/unreal4.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/protocol/unreal4.cpp b/modules/protocol/unreal4.cpp
index 98982cf1e..5c67b80a2 100644
--- a/modules/protocol/unreal4.cpp
+++ b/modules/protocol/unreal4.cpp
@@ -407,6 +407,11 @@ class UnrealIRCdProto : public IRCDProto
{
distmask = uid.substr(0, p);
}
+
+ if (!vident.empty())
+ UplinkSocket::Message(Me) << "CHGIDENT " << uid << " " << vident;
+ if (!vhost.empty())
+ UplinkSocket::Message(Me) << "CHGHOST " << uid << " " << vhost;
UplinkSocket::Message(Me) << "SVSLOGIN " << distmask << " " << uid << " " << acc;
}