Permalink
Browse files

support nickserv identification

  • Loading branch information...
1 parent a2b06b5 commit ce2e69c1469ec499a1b98ede6a472949ed2c9b24 RJ committed Oct 9, 2009
Showing with 5 additions and 1 deletion.
  1. +2 −0 examples/irccat.xml
  2. +1 −1 irccat.sh
  3. +2 −0 src/fm/last/irccat/IRCCat.java
View
2 examples/irccat.xml
@@ -6,6 +6,8 @@
<address>irc.example.com</address>
<port>6667</port>
<password/>
+ <!-- to identify with nickserv: -->
+ <!-- <identify>somepass</identify> -->
</server>
<bot>
View
2 irccat.sh
@@ -9,4 +9,4 @@ do
cp="$cp:$jar"
done
-exec java -cp "$cp" fm.last.irccat.IRCCat "${1:-irccat.xml}"
+exec java -cp "build/:$cp" fm.last.irccat.IRCCat "${1:-irccat.xml}"
View
2 src/fm/last/irccat/IRCCat.java
@@ -157,6 +157,8 @@ protected void onConnect() {
if (defaultChannel == null)
defaultChannel = "#"+chan.getString("name");
}
+ String nickpass = config.getString("server.identify","");
+ if(nickpass != "") identify(nickpass);
System.out.println("Default channel: "+defaultChannel);
}

0 comments on commit ce2e69c

Please sign in to comment.