Fonction isidentified
#1
J'ai une condition dans une procédure qui doit s'effectuer quand l'utilisateur est identifié auprès de NickServ:

tcl
bind join - * [namespace current]::joincertif
proc joincertif { nick host hand chan } {
 
lassign [split $host "@"] ident uhost
 
putlog "isidentified => $nick = [isidentified $nick]"
 
if {![isidentified $nick] || [isvoice $nick $chan]} { return }
 
::certUser::service:connect
set res [mysqlsel $::mysqlink "SELECT count(*) FROM `voiceauto` WHERE pseudo='$nick' and salon='$chan'" -list]
set nb [lindex $res 0]
if {$nb >= 1} {
putserv "PRIVMSG ChanServ voice $chan $nick"
}
::certUser::service:deconnect
 
}



La problématique est que la fonction isidentified renvoie 1 même quand l'user est présent sur le canal et qu'il n'est pas identifié ou register.
Répondre


Messages dans ce sujet
Fonction isidentified - par Amand - 07/02/2024, 23:12
RE: Fonction isidentified - par CrazyCat - 08/02/2024, 01:01
RE: Fonction isidentified - par Amand - 08/02/2024, 03:36
RE: Fonction isidentified - par CrazyCat - 08/02/2024, 10:02
RE: Fonction isidentified - par CrazyCat - 08/02/2024, 10:16
RE: Fonction isidentified - par CrazyCat - 11/02/2024, 14:43
RE: Fonction isidentified - par CrazyCat - 11/02/2024, 17:58
RE: Fonction isidentified - par Amand - 11/02/2024, 19:10

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)
Tchat 100% gratuit -Discutez en toute liberté