summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-28 19:39:18 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-28 19:39:18 +0000
commit2470212ed18754d540a47198c4be320d63c44fd3 (patch)
treeb793695067c161bace2b22e042ce9432e04d419b /src/commands.cpp
parente85c4b09ab8a320607076b54fb75d1f0e3fb636c (diff)
Added remote versioning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1244 e03df62e-2008-0410-955e-edbf42e46eb7
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':