mIRC Home    About    Download    Register    News    Help

Print Thread
#125954 23/07/05 03:31 PM
Joined: Sep 2003
Posts: 84
T
Babel fish
OP Offline
Babel fish
T
Joined: Sep 2003
Posts: 84
I'm testing out how to make an ircd on irc, but now I got so far that the join part quit section's works.

So I was testing with a clone atack (localhost to it) and let them quit all in 1 sec with some like of 50 clone's or more.

But now irc crash if I let them quit. I don't use the /quit command in the client were the script is on (ircd)

This looks like a bug by me.

#125955 27/07/05 07:05 AM
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Im sorry but you can explain that with a bit more detail.

#125956 13/08/05 05:47 PM
Joined: Sep 2003
Posts: 84
T
Babel fish
OP Offline
Babel fish
T
Joined: Sep 2003
Posts: 84
I made an socket script so mIRC have the function of an unreal IRCD but now if we put an 100 clone's on it and let them quit irc will crash.

I use this ident for the QUIT command from the user:
Code:
  .if ($1 == QUIT) {
    .stop_user $sockname $2-
    .halt
  }


and this is the alias:

Code:
alias stop_user {
  var %nick[quit] = $gettok($1,2,58)
  var %hash[quit] = $gettok($1,3,58)
  .if ($hget(%hash[quit],channel)) {
    var %quit[loop] = 0
    .hdel $hget(%hash[quit],channel) $1
    while (%quit[loop] < $hget($hget(%hash[quit],channel),0).item) {
      .inc %quit[loop]
      .if ($1 == $2) {
        .sockwrite -n $hget($hget(%hash[quit],channel),%quit[loop]).item : $+ %nick[quit] $+ ! $+ $hget(%hash[quit],ident) $+ @ $+ $sock($1).ip QUIT : $+ $3-
      }
      .else {
        .sockwrite -n $hget($hget(%hash[quit],channel),%quit[loop]).item : $+ %nick[quit] $+ ! $+ $hget(%hash[quit],ident) $+ @ $+ $sock($1).ip QUIT :QUIT: $2-
      }
    }
    .hdel %hash[quit] channel
    .hfree %hash[quit]
    .sockclose $1
    .halt
  }
  .halt
}

but irc crasht on this kind of script.


Link Copied to Clipboard