3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-28 05:32:50 +01:00

destroy ints on destroy

This commit is contained in:
reality 2013-12-19 20:28:27 +00:00
parent 63e1344851
commit c1f3905672

View File

@ -203,6 +203,12 @@ var reddit = function(dbot) {
this.commands['~addredditfeed'].access = 'moderator';
this.commands['~rmredditfeed'].access = 'moderator';
this.onDestroy = function() {
for(i=0;i<this.ints.length;i++) {
clearInterval(this.ints[i]);
}
}.bind(this);
this.onLoad = function() {
this.internalAPI.reloadChannelFeeds();