Top

Auto join after kick/ Ban too


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  3.0 (of 1 scores)
Date Added  Oct 23, 2009
Last Updated  Oct 23, 2009
Tags  after  auto  ban  join  kick 

Introduction

This easy script lets you join after being kicked

Grab the Code

on *:kick:#: {
  if ($knick == $me) { /join # }
}
 
on *:ban:#: {
  if ($bnick == $me) { /unban # }
}
 

Comments

  (5)  RSS
Ghost-writer
Comments: 255
 
mIRC Snippet:  Auto join after kick/ Ban too
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 :(
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 :).
Jethro_
Comments: 436
 
mIRC Snippet:  Auto join after kick/ Ban too
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))
slub77
Comments: 44
 
mIRC Snippet:  Auto join after kick/ Ban too
Posted on Oct 24, 2009 7:45 am
0-0
Aucun50
Comments: 548
 
mIRC Snippet:  Auto join after kick/ Ban too
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
Jethro_
Comments: 436
 
mIRC Snippet:  Auto join after kick/ Ban too
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:
Code:

if aucun50 ison $chan { ... }
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.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom