date programmatically, though. Cleaned up "make install" somewhat. Removed the need for a separate pasetbot.lib.sample file. It's generated by Makefile now.
that's just extra text or whether it indicates a missing command, though. More debugging is needed there. I fixed the install paths. Pastebot now installs in /usr/local/... rather than /usr/... It seemed more reasonable that way. The README is slightly updated.
directives. Thanks to buu for actually using the makefile and discovering the problem. It's kinda sad that he's a whiner, with such amazing initial feedback as "Someone fix pastebot =[". Luckily he responds with details when pressed, or this would probably never have been fixed. So in the end, go, buu!
around. He discovered that Memephage was collecting broken URLs because of colorization attached to them, so he wrote a few regular expressions to remove them. This commit adds his color filtering code.
missing module rather than the ones it thinks it needs. Plug a security leak. You are advised to upgrade to at least this version NOW.
installation through revised configuration and library placement. He added Makefile targets for a standard installation. The README now includes instructions for using the new makefile targets. Util::Conf supports finding configuration files in standard locations. Util::Data accepts the persistent paste storage location from a configuration file. The local library directory is searched for at startup time rather than being hardcoded.
better X-Forwarded-For support, line counts to the on-channel announcement, and cleaner channel list building code.
Apache proxypass documentation and documented another error message. This should get more pastebots on port 80 where they belong. :)
responses aren't compliant with w3c's HTML 4.01 specification without including a character encoding. He STRONGLY insisted that some form of encoding be specified. | <xmath> [character encoding is] not "advisory".. without it [the | HTML] is not valid He provided the patch that I am applying with this commit. By applying this patch, I have disregarded the objections of Juerd and Yaakov: | <Yaakov> The ecoding type is NOT part of the HTML in that document, | it is a server issue. | <xmath> that's why you should specify it in the header | <xmath> Yaakov: if you just specify it on both the form page and the | result page, then at least people can enter extended chars | without worrying about them getting messed up | | <xmath> Juerd: I'm not sure all browsers can properly deal with | utf-8 | <xmath> though I guess modern ones do | <Juerd> xmath: Most modern browsers | <Juerd> xmath: But most ANY browsers guess charsets, and they're | rather good at that | <xmath> Juerd: yes, because there are so many broken pages | <Yaakov> Yes... I think that was my point. I don't know what will | be pasted. | | <xmath> if you want to rely on guessing | <xmath> fine | <xmath> but then don't put up a "Valid HTML 4.01" logo | <xmath> because it isn't | <xmath> anyway, dinner time | <xmath> bbl | | <Juerd> xmath: HTML 4.01 has nothing to do with the charset | <Yaakov> THAT IS MY POINT | <Yaakov> The HTML _IS_ VALID I will be happy to reverse this patch if it breaks more than it fixes.
Select the only channel as the default (instead of '(None)') if there is only one channel.
may be on multiple networks at once. Add network differentiation to the bot's database, IRC client, and web server.
bot's current nickname properly. This change gets it working well enough to build the channel list, anyway. It's untested for actual nick rotation/reclamation on clashes, however. I'm pressed for time to do this more right than absolutely necessary right now.
list anything until the bot side was kicked and invited back, and then it only listed the channel it was re-invited to. This patch reworks the channel management functions in Util::Data and also disambiguates lc() calls in Client::IRC. Actually, it seems that a previous patch removed irc_join. We put it back as well.
…re taken. Also indent was in different styles over the file, recommending diff -b.
code so it doesn't clobber a very important closure variable.
for requesting it, or you'd still be waiting for it. :) Just throw a port number on the server lines in pastebot.conf, separated from the server host by spaces and/or colons, and you're good to go. The default is 6667 if you leave ports out.
paste and ignores stores from the todo list. Update the README to include Storable as a new dependency (although it comes with modern Perl).
templates so the image links point into the bot. Now they're totally self-contained.
the overall todo file structure. Quite likely the entire file should be redone in outline form.