egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sending command to Undernet server after joining channel

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
gemeau50
Voice


Joined: 11 Jun 2004
Posts: 38
Location: Trois-Rivières, Canada

PostPosted: Tue Dec 11, 2007 12:27 pm    Post subject: Sending command to Undernet server after joining channel Reply with quote

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
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Tue Dec 11, 2007 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
gemeau50
Voice


Joined: 11 Jun 2004
Posts: 38
Location: Trois-Rivières, Canada

PostPosted: Tue Dec 11, 2007 2:25 pm    Post subject: Reply with quote

Exactly what I did and it works like a charm.

Zircon thank you very much
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber