Ubuntu Pastebin

Paste from blackbird at Tue, 23 Aug 2016 10:36:37 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
	if [[ $holeMatch =~ ^:(.*)!~.*PRIVMSG.*:(.*)$ ]]
			then
				nick=${BASH_REMATCH[1]}
				msg=${BASH_REMATCH[2]}
				if [ $nick != "formationBot" ]
				then
                                        #both displayed
					echo "////////////////$nick,,,,$msg"
					if [[ $msg =~ ^.*windows.*$ ]]
					then
							echo -ne "PRIVMSG #formationLinux :$nick, On dit pas 'Windows' ici, on dit 'Windaube' ;)\r\n" >&5
					else
							echo "$msg ------------------"
					fi
				fi
			fi
Download as text