DB Hub Support Forum Forum Index DB Hub Support Forum  
  Linux/Unix hub software for Direct Connect      FAQ      Search      Memberlist      Download      Album      Czat      Statistics  
  · Log in Register · Profile · Log in to check your private messages · Usergroups  



Previous topic «» Next topic
Ban && automatically kick
Author Message
@Ari 

Hub address:
dcc.irc.su:412
Joined: 19 Aug 2006
Posts: 21
Location: Tczew
Posted: 2008-02-03, 22:17   Ban && automatically kick


When i banning users I must too kick them. Is it possible when i execute some ban command, kick be execute automatically in newest versions of DB Hub? (:
 
 
@DarKRaveR 
#[KVIP]

Joined: 19 Jul 2007
Posts: 102
Location: Germany
Posted: 2008-02-04, 00:52   

Adding a kickban command for convinience? Well, mybe later, I think doing code cleanup and rework etc. is currently more pressing ;-)
 
 
@Ari 

Hub address:
dcc.irc.su:412
Joined: 19 Aug 2006
Posts: 21
Location: Tczew
Posted: 2008-02-04, 22:38   

DarKRaveR wrote:
Adding a kickban command for convinience?

No kickban command :) command same (for example: !bannick), but in code include it to bans command, if someone for example use
Code:
!ban %[userNI] reason
kick %[userNI] execute automatically (:
 
 
@DarKRaveR 
#[KVIP]

Joined: 19 Jul 2007
Posts: 102
Location: Germany
Posted: 2008-02-04, 23:08   

The major question would be: Is there any reasonable usage to ban without kicking?

Imho this depends on the hub'S policies. Imagine, somebody is misbehaving, an op could set a ban, without a kick, the user still might be able to contact an admin (for revising the issue), once kicked this seems impossible ...
On the other hand, in my opinion the whole kick/ban issues don't make sense nowa days. ipban-> reconnect ->bypass, nickban -> change nick -> bypass ....

Things like kick/ban as in IRC were introduced, when there were no dialin providers and proper idents were enforced, but that's a diferent story anyway ...

If the modification makes sense, centurion should decide on this and might supply a patch, he knows all that command handling stuff way better :-).
 
 
Centurion 
Administrator


Hub address:
sadistic.no-ip.org:6669
Age: 34
Joined: 31 Mar 2006
Posts: 430
Location: Poland
Posted: 2008-02-04, 23:20   

!ban command kicks user automatically, that is default:
Code:
if(punishment != 0)
uprintf(tempuser, "$ForceMove %s|", redirect_host_kickban);
tempuser->rem = REMOVE_USER | SEND_QUIT | REMOVE_FROM_LIST;


It works perfectly,

If you ban somenone's IP use !banip, if you ban somenone's IP nick user !bannick, these two, in opposite to !ban command, don't require user (with the same nickname) presence

I don't understand the problem ;)
  
 
 
@DarKRaveR 
#[KVIP]

Joined: 19 Jul 2007
Posts: 102
Location: Germany
Posted: 2008-02-04, 23:22   

That inded looks 'sane' - as I said, never looked deeply into tht part of the code ... that's going to come later :-).
 
 
@Ari 

Hub address:
dcc.irc.su:412
Joined: 19 Aug 2006
Posts: 21
Location: Tczew
Posted: 2008-02-04, 23:51   

Centurion wrote:
I don't understand the problem ;)

Ehh... I select one or several users in userslist and execute client command:
Code:
!bannick %[userNI] reason

Quote:
[23:46] <Security> Added entry to nickbanlist -> fdfgd
[23:46] <OpChat> [ Nickname : fdfgd ] was banned by [ Ari ] because: [ test ]

User is banned, but no kicked... check it (:
 
 
Centurion 
Administrator


Hub address:
sadistic.no-ip.org:6669
Age: 34
Joined: 31 Mar 2006
Posts: 430
Location: Poland
Posted: 2008-02-04, 23:56   

!ban nick command kicks user automatically - user must be present on the hub

!bannick & !banip don't kick user, just ban nick or ip, without checking if user is online

this is default, to made more options to choice

use !ban instead of !bannick if you want to kick somebody after banning him..
 
 
@Ari 

Hub address:
dcc.irc.su:412
Joined: 19 Aug 2006
Posts: 21
Location: Tczew
Posted: 2008-02-05, 14:13   

Centurion wrote:
use !ban instead of !bannick if you want to kick somebody after banning him..

No i can't using !ban nick, because this command banning nick and ip, but I must banning ONLY nick. In hub are require prefix nick, so I have got a lot of work with banning users. Additional I must execute kick command... That truth I banning and kicking several selected users from list by right-mouse-click menu with commands, but conveniently would be execute this commands simultaneously (banning and kick)... :)
 
 
Centurion 
Administrator


Hub address:
sadistic.no-ip.org:6669
Age: 34
Joined: 31 Mar 2006
Posts: 430
Location: Poland
Posted: 2008-02-05, 22:25   

I am not familiar with UserCommands but can't you just create a string containing two commands? Like
<you> !bannick %[user] reason|<you> !kick %[user] reason| ?
two actions for one user?
 
 
Jaff 


Hub address:
midimaniacs.no-ip.org:3000
Age: 39
Joined: 29 Sep 2008
Posts: 1
Location: Romania
Posted: 2008-09-29, 12:19   

Well... same thing happents for !tbannick. The user is banned temporarly but he don't quit the hub
_________________
 
 
miththu

Joined: 01 May 2010
Posts: 4
Posted: 2010-05-01, 20:01   

Things like kick/ban as in IRC were introduced, when there were no dialin providers and proper idents were enforced, but that's a diferent story anyway ...
_________________
Used Auto Parts
Used Car Parts
 
 
Display posts from previous:   
Reply to topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Add this topic to your bookmarks
Printable version

Jump to:  



Powered by phpBB modified by Przemo © 2003 phpBB Group
Template modified by Mich@≥

SourceForge.net Logo