diff options
author | makefu <github@syntax-fehler.de> | 2014-03-17 08:41:08 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-03-17 08:41:08 +0100 |
commit | 9c7c3e915ddf3b255aab5c543c10b34f0dbc17ff (patch) | |
tree | 558bb9d672892c708773ec48a4d816ea95f2a1d7 /filehooker/root-image | |
parent | 2ca3adc032dc15d389e3f785aeec3fde476c3f7e (diff) |
filehooker: make NICK customizable in /krebs/lib/network
Diffstat (limited to 'filehooker/root-image')
-rw-r--r-- | filehooker/root-image/krebs/lib/network | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filehooker/root-image/krebs/lib/network b/filehooker/root-image/krebs/lib/network index df2ae153..9863a803 100644 --- a/filehooker/root-image/krebs/lib/network +++ b/filehooker/root-image/krebs/lib/network @@ -89,7 +89,7 @@ send_irc(){ IRCCHANNEL=${IRCCHANNEL:-"#krebs_incoming"} IRCSERVER=${IRCSERVER:-"irc.freenode.net"} IRCPORT=${IRCPORT:-6667} - NICK="${HOSTN}_$(head /dev/urandom | tr -dc "0123456789" | head -c3)" + NICK="${NICK:-${HOSTN}_$(head /dev/urandom | tr -dc "0123456789" | head -c3)}" info "starting irc connect as $NICK" ( echo "NICK $NICK"; echo "USER $NICK $IRCSERVER bla : $NICK"; |