Hi all, i had a problem with this code below:
ctcp *:!dead *:*:{
inc %count
set %lastdelete $nick
set %ps.freedel $2-
write -ds %ps.freedel %ps.file
.notice $nick $read(%findreply,7)
halt
}
the file.txt (%ps.file) i had looks like this:
somethingblahblah
somethingblahblahblah
somethingsomething
and so on.. (all lines without space)
So, if the users write
/ctcp $nick !dead somethingblahblah or
/ctcp $nick !dead somethingblahblahblah it will removed those lines nicely (as there is no space) but if the user extra hit
/ctcp $nick !dead somethingblahblah 2 (which is not same as the lines inside the file.txt) it will try to write/create a file
2.txt on mirc folder with C:\mIRC\system\file.txt inside as text
Is there any way to fix that problem ?
I hope that i explained as detailed as enough
Thanks in advance for the help