Ticket #51 (new defect)

Opened 5 years ago

Last modified 2 years ago

Allow /MODE [+-]b for blocking/allowing buddies

Reported by: jelmer Owned by:
Priority: wishlist Milestone:
Component: IRC Version: 1.0
Keywords: Cc:
IRC client+version: Client-independent Operating System: Public server
OS version/distro:

Description

It'd be nice and intuitive to allow /MODE [+-]b to be used to block and allow IM users. We'd probably have to do pattern matching on the hostmask of all bitlbee users, but that shouldn't be much of a problem.

Attachments

Change History

Changed 5 years ago by wilmer

Mapping /KICK to a remove command would also be nice.

Changed 4 years ago by anonymous

And mapping /invite to add command? :) It would be nice to get rid of the awkward command system with root and just use the irc commands that make sense in their place.

Changed 4 years ago by timing

/KICK -> remove command:

irc_commands.c, Declare command:

        { "kick",        0, irc_cmd_kick,        IRC_CMD_LOGGED_IN },                                                                                         

void irc_cmd_kick:

static void irc_cmd_kick ( irc_t *irc, char **cmd )
{
        user_t *u ;
        char *s;
                                                                                                                                                                      if( !( u = user_find( irc, cmd[2] ) ) )
        {                                                                                                                                                                     irc_reply( irc, 401, "%s :Nick does not exist", cmd[2] );
                return;                                                                                                                                               }
                                                                                                                                                                      s = g_strdup( u->handle );
                                                                                                                                                                      u->gc->acc->prpl->remove_buddy( u->gc, u->handle, NULL );
        nick_del( u->gc->acc, u->handle );                                                                                                                            user_del( irc, cmd[2] );
                                                                                                                                                                      //irc_usermsg( irc, "Buddy `%s' (nick %s) removed from contact list", s, cmd[1] );
        irc_write( irc, ":%s!%s@%s KICK %s %s :%s", irc->nick, irc->user, irc->myhost, irc->channel, u->nick, u->nick );                                              g_free( s );
        return;                                                                                                                                               }

Changed 3 years ago by wilmer

  • component changed from BitlBee to IRC

Add/Change #51 (Allow /MODE [+-]b for blocking/allowing buddies)

Author


E-mail address and user name can be saved in the Preferences.


Action
as new
 
Note: See TracTickets for help on using tickets.