Do a search in youre scriptfiles for #scriptdet , i guess its a scriptdetectorprotection of some kind.
In the file wich contains #scriptdet should be youre error.
Maybe paste the code here.
There's an addon for mirc , its a pornkicker and has a sleep mode .
http://www.tg007.net/file-268
Maybe its what ur looking for , u have to edit it for ircd.
Casa