mIRC Home    About    Download    Register    News    Help

Print Thread
#213552 30/06/09 02:26 PM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Hello,

I don't know if this is a currently a bug but still be a problem!
when i use /join #0,0 command it's parting me from all the channels is this a problem or not? i see it is a problem!

try using : /join #0,0

westor #213553 30/06/09 02:36 PM
Joined: Nov 2006
Posts: 1,552
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,552
/join 0 = "part all chanels" is as old as IRC. There's nothing wrong with mIRC.

Edit: ...and mIRC ignores channel "0" in "auto-join on invite" since v4.1

Horstl #213554 30/06/09 02:46 PM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
So it's not an issue ?

westor #213555 30/06/09 02:52 PM
Joined: Nov 2006
Posts: 1,552
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,552
Nope. Even if it may be (ab)used for a corny joke.

westor #213556 30/06/09 03:23 PM
Joined: Dec 2002
Posts: 1,999
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,999

Also, it's the server doing it, not mIRC. If you /debug you would see that mIRC sends JOIN 0 to the server and the server sends the PART replies to mIRC.

RoCk #213559 30/06/09 10:17 PM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
How can i fix this myown?

westor #213561 30/06/09 10:45 PM
Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
Simply don't join "0".

For convenience you can always use a more comprehensive alias that will ensure all channels given to /join have a channel-specifier:

Code:
alias join {
  join $regsubex($1-, /([^\x2c]+)/g, $iif($left(\1, 1) isin $chantypes, \1, $chr(35) $+ \1))
}

Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Yes, have a look and at the /join option's

e.g: /join -n #channel
[13:30:36] * Now talking in #-n

the code that you gave is not contains the JOIN option's! so it's wrong!

westor #213591 01/07/09 05:01 PM
Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
westor: I don't think you should be blaming people for giving you example code that doesn't do exactly what you need. It's not "wrong", it's just incomplete. Instead of complaining, fix it yourself.

westor #213595 01/07/09 07:09 PM
Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
Code:
alias join {
  if -* iswm $1 {
    var %switches = $1
    tokenize 32 $2-
  }
  join %switches $regsubex($1-, /([^\x2c]+)/g, $iif($left(\1, 1) isin $chantypes, \1, $chr(35) $+ \1))
}


Good job I was here to overcome this difficult obstacle!

argv0 #213600 02/07/09 12:13 AM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Originally Posted By: argv0
westor: I don't think you should be blaming people for giving you example code that doesn't do exactly what you need. It's not "wrong", it's just incomplete. Instead of complaining, fix it yourself.


I didn't say that into that way, just said that is wrong! one if it is wrong then is not a code is a wrong! laugh , and i appreciate the example and his/her work for giving me the example and just i said the result's and nothing bad for him/her and for the code completeness smile , i don't want to think that i am this kind of person! and nobody could be perfect all the humans guy's made and will make wrongs until the death :P


Link Copied to Clipboard