mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
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['~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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user