Auto join after kick/ Ban too
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 3.0 (of 1 scores) |
| Date Added | Oct 23, 2009 |
| Last Updated | Oct 23, 2009 |
| Tags | after auto ban join kick |
Introduction
mIRC Snippet:
Auto join after kick/ Ban too
Posted on Oct 23, 2009 6:19 pm
Posted on Oct 23, 2009 6:19 pm
//cs kick $chan You | mode $chan +b $address(you,3), i banned after i kicked but you never saw the ban so you cant unban :| 3 points for effort, 1 point lost for misuse of brackets :(
Could of been better, like so :O
No need for / in a script, mirc defaults it, and if its only 1 command you do not need brackets to do it, brackets are for a string of commands :). sooo, 3 :).
| Code: |
on *:kick:#: { if ($knick == $me) { /join # } } on *:ban:#: { if ($bnick == $me) { /unban # } } |
Could of been better, like so :O
| Code: |
on *:kick:#: { if ($knick == $me) join # } on *:ban:#: { if ($bnick == $me) unban # } |
No need for / in a script, mirc defaults it, and if its only 1 command you do not need brackets to do it, brackets are for a string of commands :). sooo, 3 :).
mIRC Snippet:
Auto join after kick/ Ban too
Posted on Oct 23, 2009 7:44 pm
Posted on Oct 23, 2009 7:44 pm
$bnick would actually become $null if the $banmask itself didn't include a nickname. It'd be best to use:
| Code: |
| if ($banmask iswm $address($me,5)) |
mIRC Snippet:
Auto join after kick/ Ban too
Posted on Oct 25, 2009 10:22 pm
Posted on Oct 25, 2009 10:22 pm
Where do you think it's some how better to not have { } after your if statements? Not having { } SLOWS down your script so does the "if %1>%2", your just making your computer do more work when it shouldn't have to.
/me thinks you have been reading RusselB's scripts to much
/me thinks you have been reading RusselB's scripts to much
mIRC Snippet:
Auto join after kick/ Ban too
Posted on Oct 25, 2009 11:43 pm
Posted on Oct 25, 2009 11:43 pm
Aucun50, I do use brackets, but with a short code, they are not needed. It depends on the circumstances where brackets must be used. And you have RusselB's coding "pattern" wrongly claimed. He often codes it as such, for instance:
where parentheses are void. But there are times he DOES use parentheses and brackets side by side. There's no definite proof that, without using the brackets, will make your PC work harder. I'll take that as a hearsay.
P.S. If you've read mirc's help file, you'll find that there are many examples without the use of {} and usually they're a line of codes to show how an event works.
| Code: |
if aucun50 ison $chan { ... } |
P.S. If you've read mirc's help file, you'll find that there are many examples without the use of {} and usually they're a line of codes to show how an event works.





