-
-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reddit Module Posts Output 3 Times if a Reddit Short Link is posted in Chat #615
Comments
In the future, please paste your output rather than screenshotting. That way I can copy-paste the URL, rather than having to retype it manually. Also, I'm only getting the output twice. Could you paste the output of .version? (I assume it's either 4.5.0 or a recent -git, but it's still good to know.) |
This solves #615. When reloading these modules, a new compiled regex object was created and inserted into the url handler set. Because it was a new object, it didn't replace the old one (even though the pattern was the same). This meant that every time the module was reloaded, another version of the function was added, meaning the output would be produced an additional time.
Fixed in de4abaa, but if you don't want to run from git you can also fix this by turning it off and turning it back on again :D |
This solves #615. When reloading these modules, a new compiled regex object was created and inserted into the url handler set. Because it was a new object, it didn't replace the old one (even though the pattern was the same). This meant that every time the module was reloaded, another version of the function was added, meaning the output would be produced an additional time.
This solves sopel-irc#615. When reloading these modules, a new compiled regex object was created and inserted into the url handler set. Because it was a new object, it didn't replace the old one (even though the pattern was the same). This meant that every time the module was reloaded, another version of the function was added, meaning the output would be produced an additional time.
Title says it all, every time a reddit short link is posted in IRC it then shows the post info 3 times, example here:
http://i.imgur.com/jRcQQat.png
The text was updated successfully, but these errors were encountered: