mIRC Home    About    Download    Register    News    Help

Print Thread
#50649 21/09/03 07:21 PM
Joined: Apr 2003
Posts: 8
N
NetVoiD Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Apr 2003
Posts: 8
I think it would be a nice idea to handle what mIRC sends to the server. For the moment, if I want to halt some default automatic actions done by mIRC (such as /mode #channel on every joined channel), there's no option for me. Something like on *:SERVOUT:<matchtext>: would be great, allowing us to /halt or to modify (/raw bleh) what is sent.



NetVoiD @ Undernet
IRC isn't real life..
#50650 21/09/03 09:25 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
i personally cant think of one place this would be usefull, since most ircds commands are pretty much set in stone as to how they need to recieve messages. the limited things u may have to change can be done thru /quote and the like. give an example as to where ud need to change the commands being sent to the server if you dont mind.


D3m0nnet.com
#50651 21/09/03 10:01 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Ditto d3mon. Not only that, even more reason for people to "hide" commands.. You think you said one thing, and another was sent. You wanted to op yourself, but it ops someone u were unaware of.

No thanks, if you want to enterpret your own command--/sockopen is available.


-KingTomato
#50652 21/09/03 11:07 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
There is one place it would be useful... making mIRC work on MSN. I don't know if that's the reason the poster wanted it for, but that's the only one that comes to my mind. Unless someone can provide legitimate reasons for it to be added, I don't think it should.

#50653 22/09/03 12:36 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
nobody start saying "you use msn etc etc" because i dont.
there is no need for on *:servout for that because the msnchatx.ocx already does it.


new username: tidy_trax
#50654 22/09/03 04:26 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
/mode #channel isn't a default mirc action when someone joins. All the happens is the joining is displayed, which can be turned off or responded to via the on join event. All other mode changes, like +o/v/l/i/m/M/R/ etc are triggered by scripts and not mirc


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#50655 22/09/03 04:31 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Not to get off topic, but it doesnt? Have u actually even tested that before hypothesising

mirc Debug:

-> irc.dynamix.com JOIN #BAR
<- :KT|Lazy!KingTomato@mask-20252708.lndnnh.adelphia.net JOIN :#BAR
-> irc.dynamix.com MODE #BAR
-> irc.dynamix.com WHO #BAR this is my own scripting
<- :irc.dynamix.com 353 KT|Lazy = #BAR :@KT|Lazy
<- :irc.dynamix.com 366 KT|Lazy #BAR :End of /NAMES list.
<- :ChanServ!services@dynamix.com TOPIC #BAR :Teemu drank the bar dry! What are we to do? -:|:- Save the channel! =( || Save The Channel Fund! Donate to help save the channel (Note you get absolutly nothing for your contribution .... (KingTomato)
<- :ChanServ!services@dynamix.com NOTICE KT|Lazy :This channel has been registered with ChanServ.
<- :ChanServ!services@dynamix.com MODE #BAR +ntr-o KT|Lazy
<- :irc.dynamix.com 324 KT|Lazy #BAR +ntr
<- :irc.dynamix.com 329 KT|Lazy #BAR 1064205037
<- :irc.dynamix.com 352 KT|Lazy #BAR KingTomato mask-20252708.lndnnh.adelphia.net irc.dynamix.com KT|Lazy H :0 KT|Scriptin
<- :irc.dynamix.com 315 KT|Lazy #BAR :End of /WHO list.

My IRC program in C#

:KingTomato|CSharp!CSharpBot@(Addy) JOIN :#bar
:irc.dynamix.com 332 KingTomato|CSharp #bar :15,1Teemu drank the bar dry! What are we to do? -:|:- Save the channel! =( || Save The Channel Fund! Donate to help save the channel (Note you get absolutly nothing for your contribution ....
:irc.dynamix.com 333 KingTomato|CSharp #bar KingTomato 1061225345
:irc.dynamix.com 353 KingTomato|CSharp = #bar :KingTomato|CSharp KT|Lazy
:irc.dynamix.com 366 KingTomato|CSharp #bar :End of /NAMES list


-KingTomato
#50656 22/09/03 06:25 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
That's a good suggestion. I'd like to intercept some commands that mIRC sends through its automation; well, through a command too (better than having to use aliases, events like ON INPUT and such).


* cold edits his posts 24/7
#50657 22/09/03 04:27 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Why exactly would you want to block that? So that mIRC has incorrect information about what modes are set on the channel?

#50658 22/09/03 05:07 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Anything you need to want to be edited is already allowed via the "halting default text" option in mirc . The other alternative if to redefine an alias to do what you want to do. ersonally, there is no need for a function to intervene with the text being sent to the socket on the grounds of a "legitimate" reason.


-KingTomato
#50659 22/09/03 10:43 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
You're right, I agree. But I misunderstood the suggestion.
I'm currently writing a new post explaining what I really want, then I'll post in a new thread here for discussion.

Edit:
LOL, nevermind! Writing the post, I realized that many issues I thought of already have applicable solutions, then I concluded that what I really want ends up being completely satisfied if a built-in theme system is added, which was suggested thousands of times already.

Last edited by cold; 23/09/03 12:14 AM.

* cold edits his posts 24/7
#50660 23/09/03 02:57 PM
Joined: Apr 2003
Posts: 8
N
NetVoiD Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Apr 2003
Posts: 8
Sorry for replying to this 2 days later.. i'm quite busy these times :tongue:

There's two reasons why I posted that. First, I connect to IRC through a psyBNC and the program itself returns the channel modes (raws 324 and 329) when I join a channel. mIRC sending a /mode #channel at the same time, I send 10 /mode #channel everytime I connect to my psyBNC... making me lagging. The second reason is that I would want to $strip() text that is sent to a specific channel, both in what I type in editboxes and what I send via a script (mp3 player, away, etc.). I know I could make a on *:input:#: and modify each script to use a *putmsg* alias instead of the initial /msg command, but I think it would be much more easier to have an event triggered before something is sent to the server.

Also, I read in that post (I don't remember who said that) this could lead to 'hiding commands'.. I agree with this since one is a bad programmer. This is not my case and I hope this is not the case of everyone here. Every command could make mIRC become a backdoor and I don't think we should think about that when suggesting new functions... Well, I think it could also help to protect against irc worms, halting every spam text and advising the user he got a bad script in his remote.

By thinking a little bit, I'm sure everyone could find a way where that suggestion would be useful.. wink

(Sorry for my english, my first language is french ... smirk)


NetVoiD @ Undernet
IRC isn't real life..
#50661 23/09/03 03:07 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
I suppose that's true.

As easily as this command could make backdoors easier to write, it would make protection scripts even easier to write.

It would also be a great way to unify a command queue instead of having to alias over all of mIRC's commands. By this I mean a queue that gives certain commands precidence over other commands, mode stacking, and other fun botstuff to prevent getting flooded off the server.

Yes, every mIRC event and command can be used for bad, but mostly for good.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#50662 23/09/03 04:38 PM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
Even though I probably won't upgrade past 6.03, here's one thing I'd hypothetically use it for.

ON *:SERVOUT:$(* $+ $pass $+ *):if ($istok(ChanServ NickServ Identify NS CS,$2,32)) { return } | else { halt }

And I $1- would return $me IDENTIFY passwordSENT

Where $me is $1, the person who sent it.
And $2- is the stuff I actually sent.

#50663 23/09/03 09:37 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
on 1:INPUT:*: {
if (($pass isin $1-) and $wildtok($1-, *serv, 32, 0) > 0)) { return }
}

Pass is the password, on input is the event, and this is where we say script it

Sorry for the remarks, but seriously.. On input is there.. its not any easer tot ype on SERVER_WHATEVER: then it is to do on INPUT.. or just this..

alias msg {
...
... do ur crap here
...
}

done, and done.


-KingTomato
#50664 24/09/03 03:39 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Smart spam/trojan/whatever-kind-of-bad scripts (they must exist anywhere..) would use !.msg, neither ON INPUT nor an alias would override that.


* cold edits his posts 24/7
#50665 24/09/03 06:46 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I didnt mention prevention I mentioned creation... There is a difference


-KingTomato
#50666 24/09/03 07:10 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Well, I didn't specifically mean prevention nor creation, I rather meant use. I didn't say you mentioned anything either, so..

(sorry for the duplicate email notification (if you received))

Last edited by cold; 24/09/03 07:13 PM.

* cold edits his posts 24/7
#50667 25/09/03 12:21 AM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
But there's a difference. ON SERVOUT could prevent a lot more than what ON INPUT would do.

A side note. I wish the whois for notifies would do "whois nick nick" instead of the regular whois.


Link Copied to Clipboard