This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

New at .tcl and need some quick help.

Old posts that have not been replied to for several years.
Locked
D
Darok

New at .tcl and need some quick help.

Post by Darok »

I'm new to tcl but do understand the basics. I'd like to create a script to have my eggdrop /oper on my network and and catch server msgs and relay them to a particular channel. Although this is rather easy to do with normal irc clients (ie mirc) I'm not sure of how to do this with an eggdrop. Any help, suggestions or tutorial links would be greatly appreciated.

EDIT -- I just realized I put this in the wrong topic. Sorry, won't happen again :roll:
t
tainted
Master
Posts: 239
Joined: Sun May 12, 2002 8:00 pm
Location: chicago
Contact:

Post by tainted »

This would depend on the ircd that you are running, I *think*. Its only 6am here, so all of this could be completely wrong. Each "raw" message from the server should start with a number, telling clients what that string of text is (whois data, etc), per RFC. To make it oper up is very simple; There are many scripts on egghelp.org that you should take a look at for example code. Then set your console (and config if its not enabled) to echo all raw data from the server to the partyline and see what comes in. Now setup a "raw" bind to catch all the messages that you would be interested in (maybe, can filter things in the loop before spitting it out to the channel). Hope this helps ya some.

Unrelated note - When will we get a decent professional sports team again!? shesh! The Bears playing is painfull to watch this season..
D
Darok

Thx

Post by Darok »

Thx for the feedback. I've gotten the oper part done. That was pretty simple. I'll attempt a raw numeric catching script thingy. Thx again

On another note. I've managed to create an mIRC bot that connects as a services ulined connection to Unreal3.1.4-Meadows via sockets. Is this same thing possible with and eggdrop or would that required changing the core scripting to also send server protoccols to the hub? Thx again.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I fauil to understand what you are tryign to achieve from this.

Are you saying,t hat in mIRC, you make a socket connection to the server, as if the socket itself was a server?

Yes, this is possible, again, using sockets. This can be done usign eggdrop based sockets (see connect and control functions in tcl-commands.doc), or in Tcl (the socket command).
D
Darok

Post by Darok »

Yeah, sorry, didn't specify. Using mIRC sockets to create a services connection to an IRCD. I'll read up on that section in the doc you mentioned. Now if I can figure out what/where to find a definintion for idx :roll:

Yes, I'm a newbie. Can't you tell? lol
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

In mirc sockets, you give each socket a name, so that if you have more than one open, you can pick which one you send to.

IDX is exactly the same thing. It's a unique connection identifier.
Locked