Code: Select all
variable chantypes;
if {[channel get $chan chantype] == "3"}
{ doprivatcommands $nick $auth $chan; }
else
Code: Select all
proc qbot::doprivatcommands {nick auth chan host} {
if {[getaccess $auth b $chan]} {
putquick "MODE $chan +b *!*@$host"
putquick "KICK $chan $nick :You are BANNED from this channel."
} elseif {[getaccess $auth o $chan] && [getaccess $auth a $chan]} {
putquick "MODE $chan +o $nick"
} elseif {[getaccess $auth v $chan] && [getaccess $auth a $chan]} {
putquick "MODE $chan +v $nick"
}^M elseif {
putquick "MODE $chan +b *!*@$host"
putquick "KICK $chan $nick :You are BANNED from this channel."
}
}
Code: Select all
proc qbot::doprivatcommands {nick auth chan host} {
if {[getaccess $auth o $chan] && [getaccess $auth a $chan]} {
putquick "MODE $chan +o $nick"
} elseif {[getaccess $auth v $chan] && [getaccess $auth a $chan]} {
putquick "MODE $chan +v $nick"
} else {
putquick "MODE $chan +b *!*$host"
putquick "KICK $chan $nick :You are BANNED from this channel."
}
}
Code: Select all
proc qbot::initjoin {nick host hand chan} {
variable users;
variable jchans;
variable chantyp;
set chan [lindex [clean $arg(0)] 0];
set chantyp [getchantyp $chan ];
if {$chantyp == 3 }
{ doprivatcommands $nick $auth $chan; }
if {![isbotnick $nick] && [botisop $chan]} {
set welcome [channel get $chan "welcome"];
if {$welcome != ""} {
putquick [format {NOTICE %s :[%s] %s} $nick $chan [join $welcome " "]]
}
set auth [auth::getname $nick];
if {$auth == 0} {
set jchans($nick) $chan;
utimer 30 [list catch "unset [namespace current]::jchans($nick)"];
putquick "WHO $nick n%hnuat,69";
} else {
dojoincommands $nick $auth $chan;
}
}
}
Code: Select all
if {..} {
Code: Select all
if {..}
{
Code: Select all
if {([channel get $chan "chantype"] == 3)} {
blah
}
Code: Select all
proc qbot::initjoin {nick host hand chan} {
variable users;
variable jchans;
if {![isbotnick $nick] && [botisop $chan]} {
if {[channel get $chan chantype] == 3 } {
doprivatcommands $nick $auth $chan
return 0
}
set welcome [channel get $chan "welcome"];
if {$welcome != ""} {
putquick [format {NOTICE %s :[%s] %s} $nick $chan [join $welcome " "]]
}
set auth [auth::getname $nick];
if {$auth == 0} {
set jchans($nick) $chan;
utimer 30 [list catch "unset [namespace current]::jchans($nick)"];
putquick "WHO $nick n%hnuat,69";
} else {
dojoincommands $nick $auth $chan;
}
}
}
Code: Select all
proc qbot::initjoin {nick host hand chan} {
Code: Select all
if {[channel get $channel chantype] == 3 } {
Code: Select all
proc qbot::initjoin {nick host hand chan} {
variable users;
variable jchans;
if {![isbotnick $nick] && [botisop $chan]} {
if {[channel get $chan chantype] == 3 } {
doprivatcommands $nick $auth $chan
return 0
}
set welcome [channel get $chan "welcome"];
if {$welcome != ""} {
putquick [format {NOTICE %s :[%s] %s} $nick $chan [join $welcome " "]]
}
set auth [auth::getname $nick];
if {$auth == 0} {
set jchans($nick) $chan;
utimer 30 [list catch "unset [namespace current]::jchans($nick)"];
putquick "WHO $nick n%hnuat,69";
} else {
dojoincommands $nick $auth $chan;
}
}
}
We all make mistakes Tosser its just that you make them on every single post that you make.Tosser^^ wrote:Oh no, Metriod made a mistake...