jinpark / common-bot

common irc bot based from willie
0 stars 0 forks source link

truncation issue with .w link #20

Closed vertigoacid closed 10 years ago

vertigoacid commented 10 years ago

The line limit for results from wikipedia don't take into account the length of the URL that is added on the end. So, if the first section is too long and/or the URL is too long, it will be truncated.

Example: 11:32 <&vertigo> .w golden dawn (political party) 11:32 @common The Popular Association – Golden Dawn (Greek: Λαϊκός Σύνδεσμος – Χρυσή Αυγή, Laïkós Sýndesmos - Chrysí Avgí), usually known simply as Golden Dawn (Greek: Χρυσή Αυγή, Chrysí Avgí pronounced [xriˈsi avˈʝi]), is a far-right political party in Greece. It is led by Nikolaos Michaloliakos.Scholars and media have described it as neo-Nazi and fascist, though the group rejects... - http://en.wikipedia.org/wiki/Golden_Da

While the full URL is actually http://en.wikipedia.org/wiki/Golden_Dawn_(political_party)

Expected behavior would be to either truncate more of the results to allow for the URL, or to utilize the line pagination routine from UD to print it as multiple lines

jinpark commented 10 years ago

I am bad at looking at issues. I am sorry

jinpark commented 10 years ago

Please retest @vertigoacid

jinpark commented 10 years ago

Closed for @vertigoacid

[00:42:15]  <&jin>   .w golden dawn
[00:42:16]  <common>     The Popular Association – Golden Dawn   ( Greek : Λαϊκός Σύνδεσμος – Χρυσή Αυγή, Laïkós Sýndesmos - Chrysí Avgí ), usually known simply as Golden Dawn ( Greek : Χρυσή Αυγή, Chrysí Avgí pronounced [xriˈsi avˈʝi] ), is a far-right  political party in Greece. It is led by Nikolaos Michaloliakos .Scholars and media have described it as neo-... - http://en.wikipedia.org/wiki/Golden_Dawn_(political_party)