In DCC with the bot type:reallove wrote:Hello,
I've searched in the archives,looked around the forums .. but I didn't find a script like this : the bot is oped in a big channel,and ANYONE who is not in the channel to auto-invite in that channel with a simple command :"/msg botnick invite #channel" . No password needed,no user-files to be created. Can anyone help me ?
Cheers,
reallove
Code: Select all
.chanset <#channel> need-invite putquick "PRIVMSG ChanServ :INVITE <#channel> $botnick"
Code: Select all
bind msg - "invite" msg:invite
proc msg:invite { nick uhost hand arg } {
set chan [lindex [split $arg] 0]
if {[string tolower $chan] == "#mychan"} {
putserv "INVITE $nick $chan"
}
}
Code: Select all
bind msg - "invite" msg:invite
proc msg:invite { nick uhost hand arg } {
if {[validuser $nick]} {
set chan [lindex [split $arg] 0]
if {[string tolower $chan] == "#mychan"} {
putserv "INVITE $nick $chan"
}
}
}
Code: Select all
bind msg - !invite msg:invite
proc msg:invite {nick uhost hand arg} {
if {([validuser $nick])} {
set chan [lindex [split $arg] 0]
set host "*!*@[lindex [split $uhost @] 1]"
if {[(string equal -nocase "#centrala" $chan])} {
if {([ischanban $host $chan])} {
return 0
}
if {(![ischanban $host $chan])} {
putserv "INVITE $nick $chan"; return 0
}
}
}
}