Author Topic: gag Hub Security?  (Read 2492 times)

0 Members and 1 Guest are viewing this topic.

Offline Odin

  • Member
  • ***
  • Posts: 29
  • Karma: +1/-0
gag Hub Security?
« on: 30 January, 2004, 01:04:04 »
Is it possible to shut up
On every !kick a message from the BOT is displayed in main chat, but the same message is repeated by

Example:

00:04] User [NO]Baahh was kicked. (Reason: you got a upload on 128, that means max 2 upload slots open not 4, remeber min. 5kb/s pr. slot )
[00:04] <-Bure-> [TGA-OP]igooor is kicking [NO]Baahh for: you got a upload on 128, that means max 2 upload slots open not 4, remeber min. 5kb/s pr. slot

now, <-Bure-> is ok, he is logged in as BOT, but this dude, I really would like him to stay silent!
Norges DC hub nummer 1!
dchub://odin.vikingshub.com:1337  

PtokaX forum

gag Hub Security?
« on: 30 January, 2004, 01:04:04 »

Offline VidFamne

  • Triple Ace
  • **
  • Posts: 173
  • Karma: +2/-0
(No subject)
« Reply #1 on: 30 January, 2004, 01:47:16 »
You can use ' return 1'
to tell the hub that the command is already done.

Offline plop

  • Forum God
  • ****
  • Posts: 2 464
  • Karma: +37/-0
(No subject)
« Reply #2 on: 30 January, 2004, 04:17:31 »
Quote
Originally posted by VidFamne
You can use ' return 1'
to tell the hub that the command is already done.
that return 1 is in the script.
just it keeps speaking as it's send out by ptokax itself after the kick.
Code: [Select]
     if CommandsTable[cmd] then
         call(CommandsTable[cmd], {user,data})
         return 1
  end
odin is running my beta's of a.i..
just you guy's have 2 much questions that i don't have time 2 find a cure for this problem. lol

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Offline VidFamne

  • Triple Ace
  • **
  • Posts: 173
  • Karma: +2/-0
(No subject)
« Reply #3 on: 30 January, 2004, 04:43:26 »
Oh, sorry I didnt know that.
But it would be very interesting to look at your script.
Is it public? :))

Offline plop

  • Forum God
  • ****
  • Posts: 2 464
  • Karma: +37/-0
(No subject)
« Reply #4 on: 30 January, 2004, 05:17:24 »
Quote
Originally posted by VidFamne
Oh, sorry I didnt know that.
But it would be very interesting to look at your script.
Is it public? :))
nope sorry, i asked the users from our hub's if i could release the source but they asked me not 2, and there are a bunch of hiden jokes in it. lol
it's more fun if you find them by accident. lol
but take a look @ crazy bot if that piece of code grabed your interest, that works in the same style as a.i..
without crazy bot i never could have made a.i. working this fast.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Offline Odin

  • Member
  • ***
  • Posts: 29
  • Karma: +1/-0
(No subject)
« Reply #5 on: 30 January, 2004, 12:14:58 »
Problem here I belive is that send the message before the bot, so the "return 1" won't do it. Am I wrong?
Norges DC hub nummer 1!
dchub://odin.vikingshub.com:1337  

Offline plop

  • Forum God
  • ****
  • Posts: 2 464
  • Karma: +37/-0
(No subject)
« Reply #6 on: 30 January, 2004, 15:35:50 »
Quote
Originally posted by Odin
Problem here I belive is that send the message before the bot, so the "return 1" won't do it. Am I wrong?
your basicly right, check the next flow chart 2 see whats happening.
Code: [Select]
data comes into ptokax
ptokax check what it is and decides what 2 do with it (send 2 bot or keep for himself)
bot gets the data in this case
bot finds the kick processes it by sending a command 2 ptokax --- ptokax responds by sending a msg from hub securety
|
|
bot speaks and does a return 1 to stop data going out.
user is gone.
as you can see it splits up, so the return 1 only works on the part from the bot stopping the command being shown in chat.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

PtokaX forum

(No subject)
« Reply #6 on: 30 January, 2004, 15:35:50 »