mIRC Home    About    Download    Register    News    Help

Print Thread
#163945 06/11/06 02:35 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
on ^*:join:#:{
if ($me isop $chan) {
kick $chan $nick $kickmsg $cr ban $chan $nick
}

is this right?

#163946 06/11/06 03:20 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
im not sure why your performing a carriage return for that a simple

kick $chan $nick $kickmsg | ban $chan $nick

would do the trick... or ban -k $nick msghere

on *:join:#:{
if ($me isop #) { ban -k $nick kickmsghere }
}

but again im not sure why you would use that because that would kick everyone that joins

$cr is carrirage return while $crlf returns carriage yes but also is a new line feed.. so that for example if you were to write to a editbox from txt file or something you would write did -a $dname ID whatever $crlf for it to hadd a new line after returning each and every line


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
#163947 06/11/06 03:36 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
i'm just asking if that would work...


coz i want to use $cr for a change ( wanna learn )

but on kicks and deop only or join

on ^*:join:#:{
if ($me isop $chan) {
kick $chan $nick $kickmsg $cr ban $chan $nick
}

may i use $cr to replace { ?
like this?

on ^*:join:#:{
if ($me isop $chan) $cr
kick $chan $nick $kickmsg | ban $chan $nick
}

anybody wants to give me an example thanks

#163948 06/11/06 06:09 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
no $cr inserts into the currently being processed command a $chr(13) it does not then cause the command pharser to see this as two commands.

#163949 06/11/06 06:47 AM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
[*] You could use it the kick but why would you want to? A pipe does exactly the same thing :tongue:
[*] $cr wont replace a "}".

But really, why ask these questions here? All you need to do is try it, and you'll have your answer. grin

#163950 06/11/06 07:29 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
Just to be sure hehehehe

:tongue: :tongue: :tongue:

#163951 06/11/06 07:43 AM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Well really, to be really sure, you'd still have to test it :tongue:


Link Copied to Clipboard