mIRC Home    About    Download    Register    News    Help

Print Thread
About Gline Command #506 09/12/02 08:01 AM
Joined: Dec 2002
Posts: 76
A
aZnLupin Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 76
My server use UltimateIRCd and my Gline Command is:
/gline *@realhostname <times> :<reason>
Everytime i gline flooder i need whois flooder then take the Real Hostname of flooder then copy that Real Hostname to Gline Command
Now you can help me creat Gline Command on the Pupop Menus like:
Control
.Gline:/gline $$1 ( without whois part, <times> set 86400, <reason> set Flooder)

Last edited by aZnLupin; 09/12/02 08:11 AM.
Re: About Gline Command #507 09/12/02 09:29 AM
Joined: Dec 2002
Posts: 52
M
magic Offline
Babel fish
Offline
Babel fish
M
Joined: Dec 2002
Posts: 52
Code:
use: $remove($address($$1,2),*!)


- magic


Last edited by magic; 09/12/02 09:43 AM.
Re: About Gline Command #508 09/12/02 09:54 AM
Joined: Dec 2002
Posts: 76
A
aZnLupin Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 76
Thx, but sorry, i need Real HostName of Flooder, my server set +x when user connect, +x is hide Real HostName of user, everytime i use gline command i must whois user to take Real HostName of user then copy Real HostName to Gline Command then ... enter wink
You can help me creat Gline Command on the Pupop Menus like:
Control
.Gline:gline $$1 ( Without Whois part, <time> set 86400, <reason> set Flooder )
Note: Gline Command is /gline *@RealHostName <time> :<reason>
This is my whois message:
aZnLupin is ~mircscrip@IRC-Admin.TuoiThanTien.com * mircscript build 7000 beta-6
aZnLupin Is Using modes [+abfghikmnoprswxzACGMPWZR]
aZnLupin Real Hostname 203.162.71.23
aZnLupin has identified for this nickname
aZnLupin on @#lobby @#help
aZnLupin using irc.myserver.com Vietnamese IRC Network
aZnLupin is an IRC Administrator on Vietnamese IRC Network
aZnLupin is a Services Root Administrator on Vietnamese IRC Network
aZnLupin is available for help.
aZnLupin is a Server Bot on irc.myserver.com
aZnLupin has been idle 5mins 23secs, signed on Mon Dec 09 15:28:09
Pls help me !!!

Re: About Gline Command #509 09/12/02 12:00 PM
Joined: Dec 2002
Posts: 349
S
Skip Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 349
Unless the ircd allows you to /gline nick time :reason and gets the address for you (might work) then you're going to have to get the users real host somehow.

Try turning your debug window on (/debug @debug) and doing the /whois to get the numeric and syntax for the "Real Hostname" reply, but you'd have to write a remote event then.

Hope that helps. smile

Re: About Gline Command #510 09/12/02 12:46 PM
Joined: Dec 2002
Posts: 2,984
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,984
Here's my akill popup:
Code:
  
on *:load: {
  set %ws.ktime 30
  echo $colour(info) -ta &gt;Success - You have loaded the k:line popup addon.
}
alias ws.k dialog -m ws.k ws.k
dialog ws.k {
  size -1 -1 150 85
  title "Server Ban Time"
  box "", 1, 1 1 148 83
  text "Enter a time in minutes here", 2, 8 10 140 13
  edit "", 3, 6 25 137 19, center
  button "Set and Close", 4, 36 50 80 25, okay
}
on *:dialog:ws.k:*:*: {
  if ($devent == init) {
    if (%ws.ktime == 30) {
      did -a ws.k 3 30 (Default)
    }
    if (%ws.ktime != 30 &amp;&amp; %ws.ktime == $null) {
      did -a ws.k 3 There is no time set.
    }
    if (%ws.ktime &lt; 30 || %ws.ktime &gt; 30 &amp;&amp; %ws.ktime != $null) {
      did -a ws.k 3 %ws.ktime
    }
  }
  if ($devent == sclick) {
    if ($did == 4) {
      if ($did(3).text == %ws.ktime) {
        dialog -x ws.k
      }
      else {
        if ($did(3).text == 30) {
          set %ws.ktime 30
        }
        if ($did(3).text != 30 &amp;&amp; Default !isin $did(3).text) {
          set %ws.ktime $did(3).text
          dialog -x ws.k
        }
      }
    }
  }
}
menu menubar {
  $iif(a isincs $usermode,Server Ban Time Setting):ws.k
}
menu nicklist {
  $iif(a isincs $usermode,Server Ban): {
    if ($snick(#,0) == 1) {
      .hadd -sm kline $snicks 1
      whois $$1
    }
    if ($snick(#,0) &gt; 1) {
      echo $colour(info) -ta &gt;You can only ban one user at a time!
    }
    if ($snick(#,0) &lt; 1) {
      echo $colour(info) -ta &gt;There's no user highlighted. Did they just leave?
      halt
    }
  }
  -
}
raw 311:*: {
  if ($hget(kline,$snick($active,1)) == $null) {
    halt
  }
  if ($hget(kline,$snick($active,1)) == 1) {
    .hfree -sw kline
    akill *@ $+ $4 This IP has been banned from $server at $time on $date - http://telstra.com/res/docs/Terms.asp %ws.ktime
  }
}
ON *:CONNECT: {
  if ($hget(kline,$snick($active,1)) == 1) {
    .hfree -sw kline
  }
}
ON *:DISCONNECT: {
  .hfree -sw kline
}

If you want to try it just modify the akill command to gline and alter the parameters in the command to suit your IRCd. This is meant for use in a particular script but should work in any.


Induced IRC
irc.induced.net
Re: About Gline Command #511 21/12/02 06:13 AM
Joined: Dec 2002
Posts: 76
A
aZnLupin Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 76
Now i kmow Raw number of Real Hostname is 616, $5 = Real Ip, can you help me change Akill comd in your Akill pupop to Gline ?

Re: About Gline Command #512 21/12/02 06:23 AM
Joined: Dec 2002
Posts: 76
A
aZnLupin Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 76
I have problem:
Code:
 raw 616:*: {
  gline *@ $+ $5 86400 :Banned from $server  
} 

but alway gline user ( not flooder ) everytime i whois someone frown, i need pupop same your Akill pupop like Gline, can you help me ?

Re: About Gline Command #513 25/12/02 01:25 PM
Joined: Dec 2002
Posts: 22
S
Synister Offline
Ameglian cow
Offline
Ameglian cow
S
Joined: Dec 2002
Posts: 22
raw 378

should be real host