mIRC Home    About    Download    Register    News    Help

Print Thread
Get Channel Event options from script? #249599
06/12/14 05:13 PM
06/12/14 05:13 PM
Joined: Mar 2008
Posts: 86
Austria
B
BhaaL Online OP
Babel fish
BhaaL  Online OP
Babel fish
B

Joined: Mar 2008
Posts: 86
Austria
For the first time since I'm using mIRC, I tried to change some of the per-channel event settings (clicking the window-icon, Events...) to hide Joins/Parts for a particular channel.
And I immediately noticed it doesn't work with my scripts.

The reason it wont work is that I used KTE Themes, and at least from a quick glance at the help file, there aren't any identifiers that tell me if a channel has particular options set (such as Join in current window, or Nicks in Status etc.)

Is there anything built-in that might help me get to those settings (other than trying to make sense of the [events] section in the mirc.ini file)?

Re: Get Channel Event options from script? [Re: BhaaL] #249868
20/12/14 04:33 PM
20/12/14 04:33 PM
Joined: Mar 2008
Posts: 86
Austria
B
BhaaL Online OP
Babel fish
BhaaL  Online OP
Babel fish
B

Joined: Mar 2008
Posts: 86
Austria
Ok, seems my problem solved itself after restarting; except that I didn't notice until just now that joins etc. aren't being shown anymore.

So, no need to actually handle it in script.

Re: Get Channel Event options from script? [Re: BhaaL] #249869
20/12/14 06:07 PM
20/12/14 06:07 PM
Joined: Jul 2006
Posts: 3,518
France
W
Wims Offline
Hoopy frood
Wims  Offline
Hoopy frood
W

Joined: Jul 2006
Posts: 3,518
France
I don't understand, how is the problem solved? If you were to make your theme aware of the per-channel settings, you would need to handle it, with $readini or something else if mIRC had something else


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Get Channel Event options from script? [Re: Wims] #249874
21/12/14 11:14 AM
21/12/14 11:14 AM
Joined: Mar 2008
Posts: 86
Austria
B
BhaaL Online OP
Babel fish
BhaaL  Online OP
Babel fish
B

Joined: Mar 2008
Posts: 86
Austria
That's the point, it seems I don't.

Code:
on ^&*:JOIN:#: echo $chan Someone joined: $nick


...doesn't trigger when someone joins the channel where I set the events to hide.
I kept seeing some bot announcing new channel peaks, but I didn't see the joins themselves. So I'm assuming mIRC is smart enough to just not trigger the code (which may or may not be good, tho).

Last edited by BhaaL; 21/12/14 11:14 AM.
Re: Get Channel Event options from script? [Re: BhaaL] #249877
21/12/14 04:42 PM
21/12/14 04:42 PM
Joined: Jul 2006
Posts: 3,518
France
W
Wims Offline
Hoopy frood
Wims  Offline
Hoopy frood
W

Joined: Jul 2006
Posts: 3,518
France
Well you are using the & event prefix, I couldn't just assume you were.
But yeah, if you or mIRC already used /halt or /haltdef on an event, indeed the next ones won't be triggered if they use the & event prefix, but you must know that or you wouldn't be using that event prefix. The event themselves will be triggered without that event prefix. I now guess you didn't think it would work if mIRC is the one halting (because of the options)


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Get Channel Event options from script? [Re: Wims] #249903
22/12/14 12:12 PM
22/12/14 12:12 PM
Joined: Mar 2008
Posts: 86
Austria
B
BhaaL Online OP
Babel fish
BhaaL  Online OP
Babel fish
B

Joined: Mar 2008
Posts: 86
Austria
I didn't expect it were using /halt or /haltdef for that, adding to the confusion that it didn't work immediately (or so it seems, at least I still got Joins after changing the setting within the same mIRC session).
In the end, I'm happy it does smile