The Gate Keeper Posted September 10, 2007 Report Share Posted September 10, 2007 also, you should remove any other occurances of the command. So that there is only one !part command for admin levels. If you have multiple part commands, that will definently stuff things up. Link to comment Share on other sites More sharing options...
hixxy Posted September 10, 2007 Report Share Posted September 10, 2007 (edited) There's no reason why it should be staying open, but your code is a bit yuck. The way you've written it will trigger the script if somebody types !joins or !parts. I'd use something like this instead: on admin:text:!join ?*:#: join % $+ #$2 on admin:text:!part ?*:#: part % $+ #$2 Edited September 10, 2007 by hixxy Link to comment Share on other sites More sharing options...
general Posted September 11, 2007 Author Report Share Posted September 11, 2007 hummmm i checked all files throughly ..i have no such codes but only this one .... on ^*:PART:#: { if ($nick == $me ) halt { msg $active $read(text\partmsgg.txt) } } but i dont think so ...this can be the reason to halt window after leaving the room... wat do u say? Link to comment Share on other sites More sharing options...
Guest Travis Posted September 11, 2007 Report Share Posted September 11, 2007 (edited) It v ery well could be, did you disable it and see? Let me address a few things I see with this code here. on ^*:PART:#: { if ($nick == $me ) halt { msg $active $read(text\partmsgg.txt) } } First of all, the ^ prefix means this event will trigger before any other part event in your mirc. Second, your syntax is wrong. I tend to look at code like sentences. if (this happens) || (this matches) { do this } elseif (this matches) { do this } you say: if ($nick == $me) { halt } { msg $active $read(text.txt) } I think what you want is: { if ($nick == $me) halt msg $active $read(file.txt) } Now, msg only works in a channel. You are assuming $active is a channel? Maybe $chan(1)? Or is echo good enough for you? But really, I would write it like this. on ^!*:part:#:/echo $active $read(file.txt) -or- on ^!*:part:#:{ if ($chan(1)) msg $ifmatch $read(file.txt) } Check out the mirc help file for "Prefixes" it will tell you that ! is the same as if ($nick == $me) halt Edited September 11, 2007 by Travis Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now