diff --git a/.gitignore b/.gitignore index 5bc957a..3a6c85b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,5 @@ __dummy.html *.o *.obj __test__*__ -/ircd - +/salty-ircd source/ircd/packageVersion.d diff --git a/dub.sdl b/dub.sdl index d13b66b..7e85075 100644 --- a/dub.sdl +++ b/dub.sdl @@ -1,8 +1,9 @@ -name "ircd" +name "salty-ircd" description "An Internet Relay Chat server in D" authors "Les De Ridder" copyright "Copyright © 2017, Les De Ridder" license "NCSA" +targetType "executable" dependency "vibe-d:core" version="~>0.7.30" dependency "gen-package-version" version="~>1.0.5" preGenerateCommands "dub run gen-package-version -- ircd --src=source/" diff --git a/source/ircd/connection.d b/source/ircd/connection.d index 067eab5..daea659 100644 --- a/source/ircd/connection.d +++ b/source/ircd/connection.d @@ -56,9 +56,9 @@ class Connection writeln("unused: " ~ message.parameters[2]); send(Message("localhost", "001", [nick, "Welcome to the Internet Relay Network " ~ nick ~ "!" ~ user ~ "@hostname"], true)); - send(Message("localhost", "002", [nick, "Your host is localhost, running version " ~ packageVersion], true)); + send(Message("localhost", "002", [nick, "Your host is localhost, running version salty-ircd-" ~ packageVersion], true)); send(Message("localhost", "003", [nick, "This server was created " ~ packageTimestampISO], true)); - send(Message("localhost", "004", [nick, "localhost", packageVersion, "w", "snt"])); + send(Message("localhost", "004", [nick, "localhost", "salty-ircd-" ~ packageVersion, "w", "snt"])); break; case "PING": send(Message(null, "PONG", [message.parameters[0]], true));