mIRC Home    About    Download    Register    News    Help

Print Thread
#225711 08/09/10 02:56 PM
Joined: Sep 2010
Posts: 14
M
moocat Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Sep 2010
Posts: 14
I'm having trouble closing channel windows in v7.1
Neither of these commands work for example:
Code:
//window -c $active
//close -c $active
//close -c *
//close -icfgmst *


Any thoughts?

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
The /close command is only used for closing windows that are associated with a nick (DCC windows, queries, ...) and customs windows, not channels.

The /window command is only used to manipulate custom windows.

Note that these command did not work for channels in earlier versions of mIRC either.

What you should use it the /part command.

Joined: Sep 2010
Posts: 14
M
moocat Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Sep 2010
Posts: 14
Originally Posted By: 5618
The /close command is only used for closing windows that are associated with a nick (DCC windows, queries, ...) and customs windows, not channels.

The /window command is only used to manipulate custom windows.

Note that these command did not work for channels in earlier versions of mIRC either.

What you should use it the /part command.


Understood.
(Kinda weird then that you can use /window command for other stuff like -a and -x on chan windows though.)

However in 7.1 the part command doesn't work when the channel status is "joining".
For example you've been banned and you're trying to join the channel, the status will be set to "joining".

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Originally Posted By: moocat
However in 7.1 the part command doesn't work when the channel status is "joining".
For example you've been banned and you're trying to join the channel, the status will be set to "joining".

What exactly do you mean? If I ban and kick myself from a channel (with the 'keep channels open' option enabled), the /part #channel command will still close the channel window, even if I'm no longer on that channel.

Joined: Sep 2010
Posts: 14
M
moocat Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Sep 2010
Posts: 14
Originally Posted By: 5618
Originally Posted By: moocat
However in 7.1 the part command doesn't work when the channel status is "joining".
For example you've been banned and you're trying to join the channel, the status will be set to "joining".

What exactly do you mean? If I ban and kick myself from a channel (with the 'keep channels open' option enabled), the /part #channel command will still close the channel window, even if I'm no longer on that channel.


My description was kinda poor.
The steps:
- You're in a channel
- You disconnect, leaving the channel window still open
- You're banned on the channel
- You connect
- It says "Attempting to rejoin channel..."
- In sys it says "...unable to join channel (address is banned)"
- Window is still open and $chan(#).status says "joining"
- "//Part $chan" doesn't work, and neither does the rest of the commands, so you cannot close the window.

Last edited by moocat; 08/09/10 05:42 PM.
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
I can't seem to reproduce this. If I am banned while disconnected, then $chan(#).status returns "kicked" after trying to connect and joining the channel. A /part #chan still works.

Am I missing a nuance/setting? Can anyone else reproduce this behaviour?

Joined: Sep 2010
Posts: 14
M
moocat Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Sep 2010
Posts: 14
If it helps: My settings:
IRC->
Disabled: Rejoin channel when kicked
Enabled: Rejoin channel on connect
Enabled: Keep channels open

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Sorry, I still can't reproduce it.

What does this return?
Code:
//echo -a $version $os $md5($mircexe,2) $script(0) $dll(0) $com(0)

Joined: Sep 2010
Posts: 14
M
moocat Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Sep 2010
Posts: 14
Originally Posted By: 5618
Sorry, I still can't reproduce it.

What does this return?
Code:
//echo -a $version $os $md5($mircexe,2) $script(0) $dll(0) $com(0)


7.1 7 972d762e7e0ce8540400eebaaccd0ee0 7 1 0

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Ok, so you have an original copy of v7.1.
However, you have 7 script files loaded and, perhaps more importantly, one DLL file.

Could you perhaps test if this still happens when you disable the scripts (quickest way: /remote off) and with the DLL file in question unloaded?

Or better yet, install a clean copy of v7.1 to another location and test it there. That may be more work though, but would rule out all other factors.

Joined: Sep 2010
Posts: 14
M
moocat Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Sep 2010
Posts: 14
Originally Posted By: 5618
Ok, so you have an original copy of v7.1.
However, you have 7 script files loaded and, perhaps more importantly, one DLL file.

Could you perhaps test if this still happens when you disable the scripts (quickest way: /remote off) and with the DLL file in question unloaded?

Or better yet, install a clean copy of v7.1 to another location and test it there. That may be more work though, but would rule out all other factors.


Fresh install, same issue.
7.1 7 972d762e7e0ce8540400eebaaccd0ee0 1 0 0

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Ok, one last question and then someone else will have to try:
What is the server returning when you try to join the channel?
Can you paste the lines from a debug (/debug @debug and afterwards /debug off)?

Joined: Sep 2010
Posts: 14
M
moocat Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Sep 2010
Posts: 14
Originally Posted By: 5618
Ok, one last question and then someone else will have to try:
What is the server returning when you try to join the channel?
Can you paste the lines from a debug (/debug @debug and afterwards /debug off)?


Code:
-> irc.justin.tv QUIT :
-> 199.9.252.165 CAP LS
-> 199.9.252.165 NICK moobot
-> 199.9.252.165 USER moobot 0 * :mooBot
<- :irc.justin.tv 001 moobot :connected to jtvchat
-> irc.justin.tv USERHOST moobot
<- :irc.justin.tv 002 moobot :Your host is jtvchat
<- :irc.justin.tv 003 moobot :This server was created on Wed Sep  8 12:19:03 2010
<- :irc.justin.tv 004 moobot irc.justin.tv 8.2.0 w n
<- :irc.justin.tv 376 moobot Some clients need an end-of-motd to autojoin.  This is it.
-> irc.justin.tv MODE moobot +i
-> irc.justin.tv JOIN #moocat
<- :moobot.irc.justin.tv 401 moobot :No such nickname.
<- :moobot.irc.justin.tv 474 moobot moocat :You are banned from moocat's rooms.


From /part #moocat:
Code:
-> irc.justin.tv PART #moocat
<- :moobot!moobot@moobot.irc.justin.tv PART #moocat


Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Could you test this on another network too, e.g. EFNet, QuakeNet, Undernet.

Justin.tv is an IRC network that follows the IRC protocol loosely (iirc).
I see that in raw 474 it does not return the channel name with a hash sign in front of it, which *may* cause mIRC to not update the channel status correctly.

Joined: Apr 2003
Posts: 342
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
I know I've run into a similar issue like this in the past. More importantly, /close should work on all windows including channels. This is more intuitive than using /part to close a channel window. /part implies leaving... if you're not in a channel but the window is open, using /part really makes little sense.

Also... there are times when you want to /part a channel and leave the window open. Or you are on freenode and someone performs a /remove command on you (sending a part event to your client and causing the window to close).


Beware of MeStinkBAD! He knows more than he actually does!
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Quote:
- Window is still open and $chan(#).status says "joining"
- "//Part $chan" doesn't work, and neither does the rest of the commands, so you cannot close the window.


Try disconnecting first.

Joined: Sep 2010
Posts: 14
M
moocat Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Sep 2010
Posts: 14
Originally Posted By: 5618
Could you test this on another network too, e.g. EFNet, QuakeNet, Undernet.

Justin.tv is an IRC network that follows the IRC protocol loosely (iirc).
I see that in raw 474 it does not return the channel name with a hash sign in front of it, which *may* cause mIRC to not update the channel status correctly.


Code:
-> jade.fl.us.dal.net JOIN #moobot
<- :jade.fl.us.dal.net 474 moocat #moobot :Cannot join channel (+b)

Is what I get from DALnet. Window closes fine.

/close and /window commands (the ones I posted) to close the window don't work though.

Is there another way I can close this window? Maybe halt the rejoin when I get the banned raw and then part the chan or something?

Joined: Sep 2010
Posts: 14
M
moocat Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Sep 2010
Posts: 14
Originally Posted By: 5618
Could you test this on another network too, e.g. EFNet, QuakeNet, Undernet.

Justin.tv is an IRC network that follows the IRC protocol loosely (iirc).
I see that in raw 474 it does not return the channel name with a hash sign in front of it, which *may* cause mIRC to not update the channel status correctly.


Yeah. Thanks for spotting the missing hash sign. If I delay the autojoin I can part the banned channel(s) before the status is updated and thus close the window.
Thanks a lot for your help smile

If anyone know a better way of doing it feel free to let me know.

Joined: Sep 2010
Posts: 14
M
moocat Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Sep 2010
Posts: 14
Originally Posted By: moocat
Originally Posted By: 5618
Could you test this on another network too, e.g. EFNet, QuakeNet, Undernet.

Justin.tv is an IRC network that follows the IRC protocol loosely (iirc).
I see that in raw 474 it does not return the channel name with a hash sign in front of it, which *may* cause mIRC to not update the channel status correctly.


Yeah. Thanks for spotting the missing hash sign. If I delay the autojoin I can part the banned channel(s) before the status is updated and thus close the window.


No, this didn't work either. The $chan($chan).status says parted, though the window remains opened and /part doesn't do anything.

I've pretty much given up hope on this and I'm just gonna part and close all channels on a DC and do an autojoin every time. Can't just have lots of empty windows sitting open.


Link Copied to Clipboard