Permalink
Browse files

Merge pull request #19 from jwheare/patch-1

Support custom realname (version)
  • Loading branch information...
2 parents 54a78d4 + c4cce65 commit 12c799e3ab25b259ef65f4481890c13bf1a8cab9 @jwheare jwheare committed May 24, 2016
Showing with 2 additions and 0 deletions.
  1. +1 −0 examples/irccat.xml
  2. +1 −0 src/fm/last/irccat/IRCCat.java
View
@@ -14,6 +14,7 @@
<nick>irccat</nick>
<!-- The number of milliseconds between each outgoing message in the bot's queue -->
<messagedelay>250</messagedelay>
+ <version>irccat</version>
</bot>
<!-- Address/port to listen on for data to cat to IRC -->
@@ -100,6 +100,7 @@ public IRCCat(XMLConfiguration c) throws Exception {
nick = config.getString("bot.nick");
setName(nick);
setLogin(nick);
+ setVersion(config.getString("bot.version", getVersion()));
setMessageDelay(config.getLong("bot.messagedelay", 1000));
setFinger(config.getString("bot.finger",
"IRCCat - a development support bot, used by Last.fm"));

0 comments on commit 12c799e

Please sign in to comment.