mIRC Homepage
Posted By: Wragg debug - 11/10/04 07:20 PM
1. when used /mode #somechannel +b
there is no raw event that returns #channelname
so is it possible to make something like when i type /mode #channel +b that %variable takes the name of channel i typed ?

2. is there a way that in @debug window thru script to inplemt right click menus like in custom @windows ?
Posted By: Relinsquish Re: debug - 11/10/04 07:29 PM
Mode changes aren't server messages (raws), but is a remote event. Therefore, you can use:
Code:
On *:BAN:#: {
If ($Nick == $Me) { echo -a $Chan }
}

This is just an example, but you get the idea. $Nick = person who set the ban. $Chan = The channel the ban happened in.

If you really wanted to do it the /mode way, you could use:
Code:
alias mode {
If ($1) && (+b == $2) { set %Variable $1 }
mode $1-
}

To refer to the debug question, I've never dealt with them, so I can't help. Sorry.
Posted By: Wragg Re: debug - 11/10/04 07:33 PM
you misunderstood, i didnt ment /mode #channel +b user
i ment only /mode #channel +b when you get for other channels that you are not in a ban list
but i dont want it to has influence on normal command like you made alias for MODE
Posted By: Relinsquish Re: debug - 11/10/04 07:34 PM
Yeah. I edited my post, look at it again. But I'm not getting what you're saying completely.
Posted By: Wragg Re: debug - 11/10/04 07:36 PM
me too :P
Posted By: Relinsquish Re: debug - 11/10/04 07:38 PM
It won't affect the normal mIRC /mode command, it'll just add one extra feature to it by setting the %Variable for the channel when +b. Nothing else.
Posted By: Wragg Re: debug - 11/10/04 07:44 PM
thank you very much smile


...still question for @Debug stays
Posted By: Wragg Re: debug - 12/10/04 02:29 AM
nvm i made that too
Posted By: Wragg Re: debug - 13/10/04 03:37 AM
This code does some nasty things..

when done /mode #channel Wragg +w

i get this

[05:32] modes by Wragg: +w!*@*
[05:32] modes by Wragg: +r

Posted By: ChatSmurf Re: debug - 08/02/23 11:02 AM
Hi, you can also try to make it in this way!

Code
on *:start: { server irc.yournetwork.tld port } { debug -pt @Debug }
© mIRC Discussion Forums