It's just a plain idea how you can make an irc bot. Possible solutions
are making the buffer bigger or preserving the last message if it
doesn't end with a \n. For WikiLinkBot the first solution works just
fine (If reading the recent changes every 10 minutes just works fine,
making a bigger buffer should do the job (max. 500 edits in 600
seconds, then just make the buffer a little bigger).
Sumurai8
2010/12/9 River Tarnell <river.tarnell(a)wikimedia.de>de>:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sumurai8 (DD):
text = IRC.recv(1024)
msgs = text.split('\n')
This seems to have a bug: if there's more than 1024 bytes waiting, you could
receive only part of the final message; so you will truncate that message, and
the next recv will receive the other half (which will then be effectively
junk).
- river.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)
iEYEARECAAYFAk0A/0QACgkQIXd7fCuc5vKX8QCeKN77J7YXVJaO5utUVMyxCC5a
ubsAnR/+E/8WtjZuD1Qrc78S5v68ZQ5/
=z4ru
-----END PGP SIGNATURE-----
_______________________________________________
Toolserver-l mailing list (Toolserver-l(a)lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list:
https://wiki.toolserver.org/view/Mailing_list_etiquette