Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- putserv "PRIVMSG $channel :$handle: '$date' == '1 Březen 2012'?"
- if {$date == "1 Březen 2012"} {
- putserv "PRIVMSG $channel :$handle: ANO!"
- } else {
- putserv "PRIVMSG $channel :$handle: NE!"
- }
- if {![regexp {<b>([^<]*)</b></a><span[^>]*> dne 1 Březen 2012</span>} $content match movie]} {
- putserv "PRIVMSG $channel :$handle: no match."
- return 1
- }
- putserv "PRIVMSG $channel :$handle: Match: '$match' Movie: '$movie'"
- if {![regexp {<b>([^<]*)</b></a><span[^>]*> dne $date</span>} $content match movie]} {
- putserv "PRIVMSG $channel :$handle: no match!"
- return 1
- }
- putserv "PRIVMSG $channel :$handle: Match: '$match' Movie: '$movie'"
- return 0
- ===============================
- 18:49 < Sinon> pantaril: '1 Březen 2012' == '1 Březen 2012'?
- 18:49 < Sinon> pantaril: ANO!
- 18:49 < Sinon> pantaril: Match: '<b>ŽELEZNÁ LADY</b></a><span class="text"> dne 1 Březen 2012</span>' Movie: 'ŽELEZNÁ LADY'
- 18:50 < Sinon> pantaril: no match!
Add Comment
Please, Sign In to add comment