summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 219ee55d0..11d0c2365 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1830,6 +1830,13 @@ void handle_nick(char **parameters, int pcnt, userrec *user)
}
+void handle_v(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host)
+{
+ char* servername = strtok(params," ");
+ char* versionstr = strtok(NULL,"\r\n");
+ ircd_connector* cn = reply->FindHost(servername);
+ cn->SetVersionString(servername);
+}
void handle_V(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host)
{
@@ -2722,6 +2729,10 @@ void process_restricted_commands(char token,char* params,serverrec* source,serve
case 'V':
handle_V(token,params,source,reply,tcp_host);
break;
+ // v <servername> <arbitary version string>
+ case 'v':
+ handle_v(token,params,source,reply,tcp_host);
+ break;
// L <SOURCE> <CHANNEL> :<REASON>
// User parting a channel
case 'L':