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 

Force join main channel (help)

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


Joined: 25 Nov 2005
Posts: 5

PostPosted: Fri Nov 25, 2005 6:43 pm    Post subject: Force join main channel (help) Reply with quote

Hi,

i want to make or find a .tcl script that will do this

-become an oper (oper himself)
-set mode +s (to see every user that connect to the server)
-do a svsjoin on some channel that i set

you see, i want to make on my irc that everyone who connect to the server automatically join main channel, can you help me with this ?

Sincerely,
Darko
Back to top
View user's profile Send private message AIM Address
Winters
Voice


Joined: 09 Jul 2005
Posts: 29

PostPosted: Fri Nov 25, 2005 7:56 pm    Post subject: Reply with quote

Code:

#This is the Script to Oper your bot

bind evnt - init-server oper:yourself

proc oper:yourself {type} {
global botnick
putserv "oper accname accpass"
putserv "mode $botnick +s"
}
Back to top
View user's profile Send private message
Koepi
Voice


Joined: 31 Aug 2003
Posts: 26

PostPosted: Sat Nov 26, 2005 8:33 am    Post subject: Re: Force join main channel (help) Reply with quote

Th3Gh0st wrote:
i want to make on my irc that everyone who connect to the server automatically join main channel, can you help me with this


you can set ths in your ircd.conf (unrealircd)
Back to top
View user's profile Send private message
Th3Gh0st
Voice


Joined: 25 Nov 2005
Posts: 5

PostPosted: Sat Nov 26, 2005 9:25 am    Post subject: Reply with quote

i forgot to tell that i am talking about "Beware IRCD (bircd)"...
thnz Winter for oper script...
Back to top
View user's profile Send private message AIM Address
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Nov 26, 2005 3:18 pm    Post subject: Re: Force join main channel (help) Reply with quote

Koepi wrote:
Th3Gh0st wrote:
i want to make on my irc that everyone who connect to the server automatically join main channel, can you help me with this


you can set ths in your ircd.conf (unrealircd)

Oh so lame! Good way to chase away any potential users is to force them to join a channel on connect that they do not wish to.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Th3Gh0st
Voice


Joined: 25 Nov 2005
Posts: 5

PostPosted: Sun Nov 27, 2005 1:06 pm    Post subject: Reply with quote

Alchera, it is not comercial irc server, we don't hunt for users, we just need someting that will put all users on the same place at the begging... it is a local wireless network with about 500 users.
Back to top
View user's profile Send private message AIM Address
Th3Gh0st
Voice


Joined: 25 Nov 2005
Posts: 5

PostPosted: Wed Nov 30, 2005 6:19 pm    Post subject: Reply with quote

Code:
set operhandle "nick"
set operpass "pass"

bind evnt - init-server evnt:init_server
proc evnt:init_server {type} {
  global botnick operhandle operpass
  putquick "OPER $operhandle $operpass"
  putserv  "MODE $botnick +s +16384"
}

bind raw * notice snotice
proc snotice {from keyword arg} {
       #regexp or lindex??
       putserv "svsjoin $nick #chat"
}


I need help with this second part with regexp and stuff...

When i set mode +s my snotice looks like

Code:
[23:16] -irc.miljakovac.net- *** Notice -- Client connecting: TheGhost (0@miljakovac.bg.wi) [10.15.5.1]


How to set nick: TheGhost in this case to a variable so i can use that to force join?
Back to top
View user's profile Send private message AIM Address
]Kami[
Owner


Joined: 24 Jul 2003
Posts: 590
Location: Slovenia

PostPosted: Wed Nov 30, 2005 7:05 pm    Post subject: Reply with quote

Well, you don't need to use regexp, because text format is "static" Laughing

Code:
set nick [lindex $arg 5]
Smile

Btw, if you don't want your code to chocke on special chars, split args Smile
_________________
Slovene Eggdrop Page
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Th3Gh0st
Voice


Joined: 25 Nov 2005
Posts: 5

PostPosted: Fri Dec 02, 2005 3:32 pm    Post subject: Reply with quote

i made a script, thnx to everyone
Back to top
View user's profile Send private message AIM Address
Le_Fou
Voice


Joined: 27 Oct 2005
Posts: 1

PostPosted: Wed Apr 11, 2007 1:41 pm    Post subject: script Reply with quote

Th3Gh0st can you please share the script?I need something like that..
Thanks
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