Sajoin Par Vhost
#11
Alors, pour ceux qui se posent encore la question. le système sur ce principe est, avec un code qui fonctionne:

tcl
bind join - "*" myjoin
proc myjoin { nick uhost handle channel } {
if {
[string match -nocase "*@helper.eggdrop.fr" $uhost] || 
[string match -nocase "*@anim.eggdrop" $uhost] || 
[string match -nocase "*@anim.eggdrop.fr" $uhost] || 
[string match -nocase "*@op.eggdrop" $uhost] || 
[string match -nocase "*@op.eggdrop.fr" $uhost] || 
[string match -nocase "*@admin.eggdrop" $uhost] || 
[string match -nocase "*@Admin.eggdrop.fr" $uhost] || 
[string match -nocase "*@global.eggdrop.fr" $uhost] || 
[string match -nocase "*@techadmin.eggdrop.fr" $uhost] || 
[string match -nocase "*@netadmin.eggdrop.fr" $uhost] || 
[string match -nocase "*NetAdmin@netadmin.eggdrop.fr" $uhost]
} { 
putquick "SAJOIN $nick #Staff"
}
}



si non, un autre système possible, basé sur clam.tcl codé par mon ami Heretoc:

tcl
proc putfast {arg} {
 append arg "\n"
 putdccraw 0 [string length $arg] $arg
}
 
 
set vhostsaj {
	*@netadmin.eggdrop.fr
	*@techadmin.eggdrop.fr
	*@admin.eggdrop.fr
	*@global.eggdrop.fr
	*@chanop.eggdrop.fr
	*@anim.eggdrop.fr
	*@helper.eggdrop.fr
	}
bind join - "*" mesajoin
proc mesajoin {nick host hand arg} {
 global vhostsaj
  foreach vhost1 $vhostsaj {
  if [string match -nocase $vhost1 $host]  {
putfast "SAJOIN $nick #Staff"
 
    } 
  }
}



voilà, en espérant que ça peux aider les futurs chercheurs.
Répondre Avertir


Messages dans ce sujet
Sajoin Par Vhost - par Babytigrou16 - 09/04/2008, 04:40
RE: Sajoin Par Vhost - par CrazyCat - 09/04/2008, 09:06
RE: Sajoin Par Vhost - par Babytigrou16 - 09/04/2008, 16:24
RE: Sajoin Par Vhost - par NuNuX - 09/04/2008, 16:31
RE: Sajoin Par Vhost - par Babytigrou16 - 09/04/2008, 17:48
RE: Sajoin Par Vhost - par DaV34 - 09/04/2008, 18:36
RE: Sajoin Par Vhost - par DaV34 - 09/04/2008, 21:04
RE: Sajoin Par Vhost - par NuNuX - 09/04/2008, 18:24
RE: Sajoin Par Vhost - par Babytigrou16 - 09/04/2008, 19:01
RE: Sajoin Par Vhost - par CrazyCat - 09/04/2008, 22:10
RE: Sajoin Par Vhost - par BlackNight - 25/06/2009, 17:41

Atteindre :


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