commit
865aa33642
1 changed files with 1 additions and 1 deletions
2
irc-bot
2
irc-bot
|
@ -52,7 +52,7 @@ nc "$SERVER" 6667 | while read message; do
|
||||||
ERROR*) echo "$message"; exit;;
|
ERROR*) echo "$message"; exit;;
|
||||||
*PRIVMSG*) echo "${message}" | sed -nr "s/^:([^!]+).*PRIVMSG[^:]+:(.*)/[$(date '+%R')] <\1> \2/p";;
|
*PRIVMSG*) echo "${message}" | sed -nr "s/^:([^!]+).*PRIVMSG[^:]+:(.*)/[$(date '+%R')] <\1> \2/p";;
|
||||||
*332*)
|
*332*)
|
||||||
TOPIC=$(echo "$message" | cut -d \: -f 3)
|
TOPIC=$(echo "$message" | cut -d \: -f 3-)
|
||||||
SPACESTATE=$(cat $SPACESTATEFILE)
|
SPACESTATE=$(cat $SPACESTATEFILE)
|
||||||
SETTOPIC=$(cat $SETTOPICFILE)
|
SETTOPIC=$(cat $SETTOPICFILE)
|
||||||
if [ "$SETTOPIC" == "1" ]; then
|
if [ "$SETTOPIC" == "1" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue