Originally Posted By: Wims
First of all, this code has a lot of exploits, you shouldn't use it as it is because it is very unsafe, see the post of qwerty for an explanation: https://forums.mirc.com/ubbthreads.php/topics/198734/1

About the deleting part, you should debug the code to find out at which point it's not behaving like you're expecting it to.


thats good n all, but i dont know that much about security yet. the error im having is:
1. everything executes properly (!addcmd & !delcmd) those are the only commands im concerned with at the moment.
2. all 3 files must delete the matching texts whole line. (.mrc, .txt, .html)
3. everything deletes properly except the .html file
4. use of !addcmd adds all 3 lines of text properly to each file

!addcmd <!trigger>
!delcmd <!trigger>

and i need the code to check to see if the <!trigger> exists or doesnt prior to adding or deleting and display a message if it doesnt exist. that works for the !addcmd currently, but not the !delcmd

thank you for your input.