Link services Bahamut
#1
Bonjour,

j'aurai aimé savoir comment il fallait créer un link d'un service existant ircu pour le connecter sur un serveur Bahamut ?

Le code en tcl que j'ai actuellement est:

TCL
bind dcc Z xconnect proc:xconnect
proc proc:xconnect {nick idx text} {
global eva hostclone check_connect
  if {[info exists eva(idx)] && [valididx $eva(idx)]} {
    if {$text=="-s"} {
  send ":$eva(nicke) QUIT $eva(serv) 0 :Maintenance technique !"
  send ":$eva(csnick) QUIT $eva(serv) 0 :Maintenance technique !"
  send ":$eva(nick) QUIT $eva(serv) 0 :Maintenance technique !"
  send ":$eva(nickserv) QUIT $eva(serv) 0 :Maintenance technique !"
  send ":$eva(nick) SQUIT $eva(serv) 0 :Rebooting Services!"
    } else {
putdcc $idx "UWorld déjà connecté. Tapez '.xconnect -s' pour squiter et reconnecter."
return 0
}
  }
    if ![catch {connect $eva(link) $eva(port)} eva(idx)] {
    send "PASS :$eva(pass)"
    send "SERVER $eva(serv) 1 [unixtime] [unixtime] J09 ACAA\] +s :$eva(info)"
    control $eva(idx) eva_event
#    control $eva(idx) evaz_event
  } else {putlog "\002Connection de $eva(serv) à $eva(idx) impossible.\002"}
  coneva
  utimer 30 check_connect
  #utimer 60 "annonce12"
  return 1
}



Auriez vous une idée quelconque ?

Cordialement,
Foufou

Edit Artix: Les codes mIRC, cay le mal !
Répondre Avertir
#2
Ouhla, il manque pas des procédures ?
Genre coneva, send...

Essaye aussi de mieux expliquer ton problème paske perso j'ai rien compris...

A part ça, je dirais que quoi que soit Bahamut, faire des services en TCL c'est franchement pas très rapide et tout <_<'
Et la gestion des sockets d'eggdrop est plutôt foireuse Razz (j'ai déjà essayé des trucs, on se retrouve avec des résultats abberants des fois :/)

Ah et tant que j'y suis, faut pas utiliser de codes mIRC... vais corriger ça.
Répondre Avertir
#3
re et merci pour ta réponse ainsi que la correction Mirc j'avais pas fait attention à cela.

Pour me faire comprendre, je souhaite connecter l'Eva actuel qui tourne sur mon serveur Ircu sur le serveur Bahamut.

Seul soucis, la connection de link n'est pas la même bien évidément histoire de nous faire suer lol.

les erreurs que j'ai eu en pl sont les suivantes:

<Geofront> [18:34] WARNING: open_telnet_raw() is about to block in gethostbyname()!
<Geofront> [18:34] net: connect! sock 13
<Geofront> [18:34] net: eof!(read) socket 13

TCL
proc coneva {} {
  global eva botnick hostclone hostc
  if [info exists hostclone] { unset hostclone }
  if [info exists hostc] { unset hostc }
  send ":$eva(serv) MODE $botnick +irZ-s"
  send ":$eva(serv) NICK $eva(nicke) 1 1 $eva(nickeident) $eva(serv) :$eva(name)"
  send ":$eva(serv) NICK $eva(csnick) 1 1 $eva(identcs) $eva(serv) :$eva(namecs)"
  send ":$eva(serv) NICK $eva(nick) 1 1 $eva(ident) $eva(serv) :$eva(name)"
  send ":$eva(serv) NICK $eva(nickserv) 1 1 $eva(identserv) $eva(serv) :$eva(nameserv)"
  send ":$eva(nick) MODE $eva(nick) +oiwsx"
  send ":$eva(nickserv) MODE $eva(nickserv) +iowsx"
  send ":$eva(nicke) MODE $eva(nicke) +iowsx"
  send ":$eva(nick) MODE $eva(csnick) +iowsx"
  send ":$eva(nick) JOIN $eva(log) x"
  send ":$eva(nick) JOIN $eva(opoff)"
  send ":$eva(nick) JOIN $eva(cmoff)"
  send ":$eva(nick) JOIN $eva(log) x"
  send ":$eva(nick) JOIN $eva(soho) x"
  send ":$eva(nick) MODE $eva(soho) +v $eva(nick)"
  send ":$eva(nicke) JOIN $eva(log) x"
  send ":$eva(nickserv) JOIN $eva(log) x"
  send ":$eva(nick) SAJOIN $botnick $eva(log)"
  send ":$eva(nick) SAJOIN $botnick $eva(log) x"
  send ":$eva(serv) MODE $eva(log) +vovovovovovo $eva(nicke) $eva(nick) $eva(nickserv) $eva(csnick) $botnick"
  send ":$eva(nick) MODE $eva(opoff) +v $eva(nick)"
  send ":$eva(nick) MODE #!Tchatche-Land! +v $eva(nick)"
  send ":$eva(nick) MODE $eva(cmoff) +v $eva(nick)"
  send ":$eva(nick) TOPIC $eva(log) :\02Bienvenue Sur Le Salon De Logs Securité Serveur."
  send ":$eva(csnick)silence +*!guest@*"
  send ":$eva(nick) silence +*!guest@*"
  send ":$eva(nicke) silence +*!guest@*"
  send ":$eva(nick) MODE $eva(log) +ntis"
  send ":$eva(nick) SAJOIN $botnick $eva(soho)"
  send ":$eva(nick) SAJOIN $botnick $eva(soho) x"
  send ":$eva(nick) MODE $eva(soho) +xvo $botnick $botnick"
}
 
bind dcc Z xconnect proc:xconnect
proc proc:xconnect {nick idx text} {
global eva hostclone check_connect
  if {[info exists eva(idx)] && [valididx $eva(idx)]} {
    if {$text=="-s"} {
  send ":$eva(nicke) QUIT $eva(serv) 0 :Maintenance technique !"
  send ":$eva(csnick) QUIT $eva(serv) 0 :Maintenance technique !"
  send ":$eva(nick) QUIT $eva(serv) 0 :Maintenance technique !"
  send ":$eva(nickserv) QUIT $eva(serv) 0 :Maintenance technique !"
  send ":$eva(nick) SQUIT $eva(serv) 0 :Rebooting Services!"
    } else {
putdcc $idx "UWorld déjà connecté. Tapez '.xconnect -s' pour squiter et reconnecter."
return 0
}
  }
    if ![catch {connect $eva(link) $eva(port)} eva(idx)] {
    send "PASS :$eva(pass)"
    send "SERVER $eva(serv) 1 [unixtime] [unixtime] J09 ACAA\] +s :$eva(info)"
    control $eva(idx) eva_event
#    control $eva(idx) evaz_event
  } else {putlog "\002Connection de $eva(serv) à $eva(idx) impossible."}
  coneva
  utimer 30 check_connect
  #utimer 60 "annonce12"
  return 1
}



Voila ou je galère, je sais pas comment m'y prendre !
Une idée ?
Répondre Avertir
#4
reuw,

j'ai réussi à connecter eva enfin mais seul soucis désormais :s

[21:28:18] <Geofront> [21:28] PASS link :TS
[21:28:18] <Geofront> [21:28] CAPAB SSJOIN NOQUIT BURST UNCONNECT ZIP NICKIP TSMODE
[21:28:18] <Geofront> [21:28] SERVER hub.chat.tchatche-land.fr 1 :Server t'Chat
[21:28:18] <Geofront> [21:28] SVINFO 5 3 0 :1270495696
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr GNOTICE :Link with defender.magicnet.gr established: Non-TS link!
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr SQLINE ChanServ :Reserved for services
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr SQLINE Chanserv00 :Reserved for services
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr SQLINE NickServ :Reserved for services
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr SQLINE MemoServ :Reserved for services
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr SQLINE Global :Reserved for services
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr SQLINE BotServ :Reserved for services
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr SQLINE OperServ :Reserved for services
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr SQLINE HelpServ :Reserved for services
[21:28:18] <Geofront> [21:28] NICK Geofront 1 1270495689 +oi guest tchatche-land.fr hub.chat.tchatche-land.fr 0 1386594823 :-=- Geofront Eva Service -=-
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr SJOIN 1270495695 #cservices + {} :@Geofront {}
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr SJOIN 1270495691 #geos + {} :@Geofront {}
[21:28:18] <Geofront> [21:28] NICK test 1 1270485069 +oi guest WWWW.rev.gaoland.net hub.chat.tchatche-land.fr 1 1331628191 :TeamScripT 4.1
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr SJOIN 1270485125 #ircops +tn {} :test {}
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr SJOIN 1270485101 #Eva +tn {} :Geofront test {}
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr SJOIN 1270482693 #Aide +tn {} :test {}
[21:28:18] <Geofront> [21:28] PING :hub.chat.tchatche-land.fr
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.magicnet.gr)
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.magicnet.gr)
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.magicnet.gr)
[21:28:18] <Geofront> [21:28] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.magicnet.gr)
[21:28:18] -hub.chat.tchatche-land.fr- *** Notice -- IGNORING BAD NICK: Eva[-@-] on - (from defender.magicnet.gr)
[21:28:19] <Geofront> [21:28] :Geofront MODE #geos 1270495691 +o Geofront
[21:28:20] <Geofront> [21:28] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.magicnet.gr)

Pourquoi le hub kill donc le service ?
Répondre Avertir
#5
C'est ton ircDefender qui kill Eva, pas ton serveur.
Répondre
#6
d'accord, pourtant je ne comprend pas trop, la j'essaye de connecter les pseudos mais en retour de pl j'ai toujours ceci:

[13:36:58] <Geofront> [13:36] PASS link :TS
[13:36:58] <Geofront> [13:36] CAPAB SSJOIN NOQUIT BURST UNCONNECT ZIP NICKIP TSMODE
[13:36:58] <Geofront> [13:36] SERVER hub.chat.tchatche-land.fr 1 :Server t'Chat
[13:36:58] <Geofront> [13:36] SVINFO 5 3 0 :1270553815
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr GNOTICE :Link with defender.tchatche-land.fr established: Non-TS link!
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SERVER Server.Tchatche-Land.fr 2 :Server t'Chat
[13:36:58] <Geofront> [13:36] :Eva PRIVMSG #Eva :Netmerge Server.Tchatche-Land.fr
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SQLINE ChanServ :Reserved for services
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SQLINE Chanserv00 :Reserved for services
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SQLINE NickServ :Reserved for services
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SQLINE MemoServ :Reserved for services
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SQLINE Global :Reserved for services
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SQLINE BotServ :Reserved for services
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SQLINE OperServ :Reserved for services
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SQLINE HelpServ :Reserved for services
[13:36:58] <Geofront> [13:36] NICK Geofront 1 1270553630 +oi guest tchatche-land.fr hub.chat.tchatche-land.fr 0 1386594823 :-=- Geofront Eva Service -=-
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SJOIN 1270553684 #Central +tn {} :@Geofront {}
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SJOIN 1270553682 #Cms +tn {} :@Geofront {}
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SJOIN 1270553636 #cservices +tn {} :@Geofront {}
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SJOIN 1270553634 #Eva +tn {} :@Geofront {}
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SJOIN 1270553632 #geos +stin {} :@Geofront {}
[13:36:58] <Geofront> [13:36] NICK Artefact 1 1270546651 +oir guest XXXXX hub.chat.tchatche-land.fr 1270546651 1331628191 :TeamScripT 4.1
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SJOIN 1270551420 #Services +stin {} :Artefact {}
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SJOIN 1270546666 #!Tchatche-Land! +stin {} :Artefact {}
[13:36:58] <Geofront> [13:36] NICK Opsb 2 1270543195 +oiah guest tchatche-land.fr Server.Tchatche-Land.fr 1 1386594823 :Bot Open Proxy Monitor
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SJOIN 1270543195 #antiproxy + {} :@Opsb {}
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr SJOIN 1270543195 #ircops +tn {} :@Geofront Artefact @Opsb {}
[13:36:58] <Geofront> [13:36] PING :hub.chat.tchatche-land.fr
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.tchatche-land.fr)
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr KILL Protect-Chan :hub.chat.tchatche-land.fr (Protect-Chan(?) <- defender.tchatche-land.fr)
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr KILL Welcome :hub.chat.tchatche-land.fr (Welcome(?) <- defender.tchatche-land.fr)
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.tchatche-land.fr)
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.tchatche-land.fr)
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.tchatche-land.fr)
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.tchatche-land.fr)
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.tchatche-land.fr)
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.tchatche-land.fr)
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.tchatche-land.fr)
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr KILL Eva :hub.chat.tchatche-land.fr (Eva(?) <- defender.tchatche-land.fr)
[13:36:58] <Geofront> [13:36] :hub.chat.tchatche-land.fr KILL Welcome :hub.chat.tchatche-land.fr (Welcome(?) <- defender.tchatche-land.fr)

Je sais pas quoi faire pour ignorer ces kill Mad
Répondre Avertir


Atteindre :


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