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.

Sending command to Undernet server after joining channel

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
g
gemeau50
Voice
Posts: 38
Joined: Fri Jun 11, 2004 6:16 am
Location: Trois-Rivières, Canada

Sending command to Undernet server after joining channel

Post by gemeau50 »

Eggdrop v1.6.18
TCL ip_hide.tcl to trigger mode +x which modify the eggdrop address before joining a channel.

I added the following command to the above TCL
putserv "silence *,~*!*@*.undernet.org"
This command makes the eggdrop deaf to X messages before the eggdrop gets confirmation that the address has been changed. The impact is that the eggdrop doesn't join our channel.

TCL is not my cup of tea. I would appreciate if someone could create a TCL which would send that command after the eggdrop joins a particular channel.

Tx in advance
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Hi there

In the .conf file, there is a proc called init-server. It s is a Tcl script that run immediately after connecting to a server. So instead of adding that line to ip_hide.tcl, add it to init-server.

Code: Select all

bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick
  putserv "PRIVMSG x@channels.undernet.org :login username passwd"
  putserv "MODE $botnick +ix-ws"
}
I think that you have to add this line

Code: Select all

putserv "*!*@*,~*!cservice@undernet.org,~*!*@*.users.undernet.org"
This line put Silence on everyone except X and all registred users with +x mode.
g
gemeau50
Voice
Posts: 38
Joined: Fri Jun 11, 2004 6:16 am
Location: Trois-Rivières, Canada

Post by gemeau50 »

Exactly what I did and it works like a charm.

Zircon thank you very much
Post Reply