destiner aux op comme au simple user ça sert a avoir le Ucentral whois whowas...pour les op a voice oper adminer ;) a kick et a ban.
metter ces lignes dans vos remote.
Source / Exemple :
;|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
;| Action-user |
;| |
;| par -NeoTokyo- |
;|___________________________________|
alias action-user { if ($dialog(action-user) == $null) dialog -m action-user action-user }
dialog action-user {
title "action-user"
size -1 -1 200 350
box "",1, 5 5 190 340
text "Pseudo :",2, 20 27 75 18
edit "",3, 75 24 100 20
text "#Salon :",4, 20 60 75 18
edit "",5, 75 50 100 20
button "Infos NickServ",6, 10 80 180 20
button "Ucentral",7, 10 110 85 20
button "Who",8, 105 110 85 20
button "Whois",9, 10 140 85 20
button "Whowas",10, 105 140 85 20
button "Voice",11, 10 170 85 20
button "deVoice",12, 105 170 85 20
button "Halfop",13, 10 200 85 20
button "deHalfop",14, 105 200 85 20
button "op",15, 10 230 85 20
button "deop",16, 105 230 85 20
button "Admin",17, 10 260 85 20
button "deAdmin",18, 105 260 85 20
button "Kick",19,10 290 85 20
button "Ban",20,105 290 85 20
button "Fermer",21, 10 320 180 20,ok
}
On *:dialog:action-user:*:*: {
if ($devent == sclick) {
if ($did == 6) { if ($did(3) == $null) { halt } | .msg nickserv info $did(3) all }
if ($did == 7) { if ($did(3) == $null) { halt } | .uwho $did(3) all }
if ($did == 8) { if ($did(3) == $null) { halt } | .who $did(3) all }
if ($did == 9) { if ($did(3) == $null) { halt } | .whois $did(3) }
if ($did == 10) { if ($did(3) == $nul) { halt } | .whowas $did(3) }
if ($did == 11) { if ($did(3) == $nul) { halt } | .mode $did(5) +v $did(3) }
if ($did == 12) { if ($did(3) == $nul) { halt } | .mode $did(5) -v $did(3) }
if ($did == 13) { if ($did(3) == $nul) { halt } | .mode $did(5) +h $did(3) }
if ($did == 14) { if ($did(3) == $nul) { halt } | .mode $did(5) -h $did(3) }
if ($did == 15) { if ($did(3) == $nul) { halt } | .mode $did(5) +o $did(3) }
if ($did == 16) { if ($did(3) == $nul) { halt } | .mode $did(5) -o $did(3) }
if ($did == 17) { if ($did(3) == $null) { halt } | .mode $did(5) +a $did(5) $did(3) all }
if ($did == 18) { if ($did(3) == $null) { halt } | .mode $did(5) -a $did(5) $did(3) all }
if ($did == 19) { if ($did(3) == $null) { halt } | .chanserv kick $$?="#salon" $did(3) all }
if ($did == 20) { if ($did(3) == $null) { halt } | .chanserv ban $$?="#salon" $did(3) all }
}
if ($devent == init) { did -ar $dname 3 %action-user-nick }
}
menu nicklist {
-
Action sur $$1:set %action-user-nick $$1 | action-user
}
Conclusion :
C ma toute premiere remote réaliser en je c pas combien de temps (g po fé attention :)
Vous n'êtes pas encore membre ?
inscrivez-vous, c'est gratuit et ça prend moins d'une minute !
Les membres obtiennent plus de réponses que les utilisateurs anonymes.
Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.
Le fait d'être membre vous permet d'avoir des options supplémentaires.