Dieses speichert mir meine User die im IRC sind in einer Datei ab.
Klappt bestens.
Allerdings habe ich ein Problem.
Bei mir ist es so:
OP = @
Voice= +
HalfOP = %
Founder = * oder !
Nur macht das Script mir jetzt aus allen ein @ obwohl das Script früher lief.
Nun ist die Frage liegts am Bot oder am Script.
Quellcode
- bind join - * ircuseronline
- bind time - "?? * * * *" ircuseronline
- proc ircuseronline { nick uhost hand chan args } {
- set ops 0
- set halfops 0
- set voice 0
- set none 0
- set nickames ""
- #####################################
- # Hier die Channels auf eure ändern #
- #####################################
- set nicks [chanlist #ODR]
- foreach nickname [chanlist #ODR] {
- if {[isop $nickname #ODR]} {
- set nicknamesops($ops) $nickname@
- incr ops
- } elseif {[ishalfop $nickname #ODR]} {
- set nicknameshalfops($halfops) $nickname%
- incr halfops
- } elseif {[isvoice $nickname #ODR]} {
- set nicknamesvoice($voice) $nickname+
- incr voice
- } else {
- set nicknamesnone($none) $nickname
- incr none
- }
- }
- if { [array exists nicknamesops] } {
- for {set x 0} {$x < $ops} {incr x} {
- lappend nicknames "$nicknamesops($x)"
- }
- }
- if { [array exists nicknameshalfops] } {
- for {set x 0} {$x < $halfops} {incr x} {
- lappend nicknames "$nicknameshalfops($x)"
- }
- }
- if { [array exists nicknamesvoice] } {
- for {set x 0} {$x < $voice} {incr x} {
- lappend nicknames "$nicknamesvoice($x)"
- }
- }
- if { [array exists nicknamesnone] } {
- for {set x 0} {$x < $none} {incr x} {
- lappend nicknames "$nicknamesnone($x)"
- }
- }
- if { [info exists nicknames] } {
- #putlog " --- saving online user ---"
- #putlog "$nicknames"
- #putlog " --- hopely saved ---"
- ##############################################################################
- # Hier den Pfad eintragen wo die Datei mit den Usern gespeichert werden soll #
- ##############################################################################
- set ircuseronlinedb "/home/Spion/eggdrop1/public_html/ircuseronline.db"
- if {[catch {open $ircuseronlinedb w} fd]} { return }
- puts $fd "$nicknames"
- close $fd
- } else {
- putlog "IRC-HELP: Notice --- No Userlist to save ---"
- putlog "IRC-HELP: Notice --- vor dem verarbeiten(sollte leer sein): $nicks ---"
- putlog "IRC-HELP: Notice --- nach dem verarbeiten(sollte leer sein): $nicknames ---"
- }
- }
- #################################################
- putlog "ircuseronline loaded ;-)"