#This is an Auto-Greeter and Oper
#U just have to give one the flag f and your bot
#will op hima bd say welcome back...
#Remember u have to give one the Flag f
#Thanx to WaLtI for helping me E-Mail: eberle@w-4.de
#Or come to Undernet on #NuF :) My nick==|IceMan|

#The channel you know what i mean
set funchannel "#NuF"

proc on_join_op_user {nick uhost handle channel} {
  global funchannel
  set thishandle [nick2hand $nick $channel]
  if {[matchattr $thishandle f]} {
      setusermode "$funchannel +o $nick"
      putserv "PRIVMSG #nuf :7Welcome back4 (´¯`·.¸¸.->12$nick4<-.¸¸.·´¯`)3 Channel OP 7of 4#YourChannel7!"
  }
}

bind join - "$funchannel *!*@*" on_join_op_user

proc setusermode {args} {
  set channel [lindex $args 0]
  set mode    [lindex $args 1]
  set nick    [lindex $args 2]
  putserv "MODE $channel $mode $nick"
}

putlog "\0034Auto op and GreeT\003 loaded by \002|IceMan|\002"
