!xop with no arguments will tell X to op you if needed
!xop nick_1 nick_2 nick_3 and so on. will tell X to op the users that don't have op from the list you gave
!xop * - will tell X to op every user in the channel if doesn't have op
bind pub o !xop pub:xop
proc pub:xop {nick uhost hand chan text} {
if {![onchan X $chan]} {
puthelp "PRIVMSG $chan :I don't see X on this channel, do you?"
return
}
if {![string length $text]} {
if {![isop $nick $chan]} {
puthelp "PRIVMSG X :op $chan $nick"
} else {
puthelp "PRIVMSG $chan :You already have op."
}
} else {
if {[string equal -length 1 "*" [lindex [split $text] 0]]} {
foreach user [chanlist $chan] {
if {![isop $user $chan]} {
lappend oplist $user
}
}
} else {
foreach user [split $text] {
if {![isop $user $chan]} {
lappend oplist $user
}
}
}
while {[llength $oplist] != 0} {
puthelp "PRIVMSG $X :[join [lrange $oplist 0 14]]"
set oplist [lrange $oplist 15 end]
}
}
}
Don't know how many nicks you can send to a line so adjust 15 to a proper limit. Haven't tested anything, just in my head. Reply back if you have any troubles with it.
Edit: Fixed. If you wish to have let's say 10 nicks per line change 14 with 9 and 15 with 10.
Last edited by caesar on Fri Jan 25, 2013 2:30 am, edited 1 time in total.
Once the game is over, the king and the pawn go back in the same box.
Using services can tend to flood them, causing the bot to either be killed or even excess flood offline.
A better way would be using a script like this - a mass.tcl that you can configure.
Let us know if this helps.
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
True, it starts the counting from 0 so it would be 16 nicks per line. But there's no need to add an expr just cos the user can't change from 15 to 14 or whatever count he wishes to have per line. But for lazy people that would do fine.
Once the game is over, the king and the pawn go back in the same box.