echo %temptext
will return all the HTML code on status window
why did you use that?
by the way, there are some jokes with a lot of lines, and it may cause "excess flood" disconnection...
why dont you use
else if (<li> isin %temptext) || (<p> isin %temptext) {
instead 2 elseif conditions?
i didnt understand the meaning
of set %jokebegin = 1 and then set it %jokebegin = 0
this is simple tips, and i will not mention $regex to improve your first socket