From 7318cbc6419fefe8816f140e0d2dcf896a86c0ba Mon Sep 17 00:00:00 2001 From: Darren Date: Sun, 5 Jan 2014 23:28:01 +0000 Subject: [PATCH] Default gecos supporting user hostname insertion --- config.example.js | 1 + server/irc/connection.js | 1 + 2 files changed, 2 insertions(+) diff --git a/config.example.js b/config.example.js index 77a2729..936aea9 100644 --- a/config.example.js +++ b/config.example.js @@ -75,6 +75,7 @@ conf.default_encoding = 'utf8'; /* * Default GECOS (real name) for IRC connections * %n will be replaced with the users nick +* %h will be replaced with the users hostname */ //conf.default_gecos = 'Web IRC Client'; diff --git a/server/irc/connection.js b/server/irc/connection.js index b0f3a93..f28fd65 100644 --- a/server/irc/connection.js +++ b/server/irc/connection.js @@ -574,6 +574,7 @@ var socketConnectHandler = function () { if (global.config.default_gecos) { gecos = global.config.default_gecos.toString().replace('%n', that.nick); + gecos = gecos.toString().replace('%h', that.irc_host.hostname); } // Send any initial data for webirc/etc -- 2.25.1