Force join main channel (help)

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
T
Th3Gh0st
Voice
Posts: 5
Joined: Fri Nov 25, 2005 6:40 pm

Force join main channel (help)

Post by Th3Gh0st »

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
W
Winters
Voice
Posts: 29
Joined: Sat Jul 09, 2005 12:24 pm

Post by Winters »

Code: Select all

#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"
}
K
Koepi
Voice
Posts: 26
Joined: Sun Aug 31, 2003 1:21 am

Re: Force join main channel (help)

Post by Koepi »

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)
T
Th3Gh0st
Voice
Posts: 5
Joined: Fri Nov 25, 2005 6:40 pm

Post by Th3Gh0st »

i forgot to tell that i am talking about "Beware IRCD (bircd)"...
thnz Winter for oper script...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Re: Force join main channel (help)

Post by Alchera »

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
T
Th3Gh0st
Voice
Posts: 5
Joined: Fri Nov 25, 2005 6:40 pm

Post by Th3Gh0st »

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.
T
Th3Gh0st
Voice
Posts: 5
Joined: Fri Nov 25, 2005 6:40 pm

Post by Th3Gh0st »

Code: Select all

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: Select all

[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?
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

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

Code: Select all

set nick [lindex $arg 5]
:)

Btw, if you don't want your code to chocke on special chars, split args :)
T
Th3Gh0st
Voice
Posts: 5
Joined: Fri Nov 25, 2005 6:40 pm

Post by Th3Gh0st »

i made a script, thnx to everyone
L
Le_Fou
Voice
Posts: 1
Joined: Thu Oct 27, 2005 7:20 pm

script

Post by Le_Fou »

Th3Gh0st can you please share the script?I need something like that..
Thanks
Post Reply