forked from GitHub/dbot
destroy ints on destroy
This commit is contained in:
parent
63e1344851
commit
c1f3905672
@ -203,6 +203,12 @@ var reddit = function(dbot) {
|
|||||||
this.commands['~addredditfeed'].access = 'moderator';
|
this.commands['~addredditfeed'].access = 'moderator';
|
||||||
this.commands['~rmredditfeed'].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.onLoad = function() {
|
||||||
this.internalAPI.reloadChannelFeeds();
|
this.internalAPI.reloadChannelFeeds();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user