# Character that will be used before public querries
set edu(cmdchar) "."
# Owner flag:
set edu(flag.owner) "o"
# Voice flag
set edu(flag.voice) "V"
bind pub $edu(flag.owner)|$edu(flag.voice) $edu(cmdchar)invite edu:pub:invite
# .invite <nickname>
proc edu:pub:invite {nickname hostname handle channel text} {
global edu
set text [split $text]
set invite_nickname [join [lrange $text 0 1]]
if {![channel get $channel [censored]]} {
return
}
if {![botisop $channel]} {
putquick "NOTICE $nickname :ERROR: I'm not opped on $channel"
return
}
if {$invite_nickname == ""} {
putquick "NOTICE $nickname :SYNTAX: $edu(cmdchar)invite <nickname>"
return
}
if {[onchan $invite_nickname $channel]} {
putquick "NOTICE $nickname :ERROR: $invite_nickname is already in $channel"
return
}
putquick "INVITE $invite_nickname $channel"
putquick "NOTICE $nickname :*INVITE* $invite_nickname on $channel"
}
The things I need are the following 1) .invite [#channel] <nickname> and 2) $botnick invite [#channel] <nickname>