| View previous topic :: View next topic |
| Author |
Message |
gemeau50 Voice
Joined: 11 Jun 2004 Posts: 38 Location: Trois-Rivières, Canada
|
Posted: Tue Dec 11, 2007 12:27 pm Post subject: Sending command to Undernet server after joining channel |
|
|
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 |
|
| Back to top |
|
 |
Zircon Op
Joined: 21 Aug 2006 Posts: 191 Location: Montreal
|
Posted: Tue Dec 11, 2007 1:24 pm Post subject: |
|
|
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: | 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: | | putserv "*!*@*,~*!cservice@undernet.org,~*!*@*.users.undernet.org" |
This line put Silence on everyone except X and all registred users with +x mode. |
|
| Back to top |
|
 |
gemeau50 Voice
Joined: 11 Jun 2004 Posts: 38 Location: Trois-Rivières, Canada
|
Posted: Tue Dec 11, 2007 2:25 pm Post subject: |
|
|
Exactly what I did and it works like a charm.
Zircon thank you very much |
|
| Back to top |
|
 |
|