Fix het topic
This commit is contained in:
parent
fff716c80d
commit
b7db71ebee
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;;
|
||||
*PRIVMSG*) echo "${message}" | sed -nr "s/^:([^!]+).*PRIVMSG[^:]+:(.*)/[$(date '+%R')] <\1> \2/p";;
|
||||
*332*)
|
||||
TOPIC=$(echo "$message" | cut -d \: -f 3)
|
||||
TOPIC=$(echo "$message" | cut -d \: -f 3-)
|
||||
SPACESTATE=$(cat $SPACESTATEFILE)
|
||||
SETTOPIC=$(cat $SETTOPICFILE)
|
||||
if [ "$SETTOPIC" == "1" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue