Changeset e41cc40 for protocols


Ignore:
Timestamp:
2015-01-30T04:07:40Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
34afea7
Parents:
7821ee8
Message:

purple: Implement /kick

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/purple/purple.c

    r7821ee8 re41cc40  
    604604                          message && *message ? message : "Please join my chat",
    605605                          who );
     606}
     607
     608void purple_chat_kick( struct groupchat *gc, char *who, const char *message )
     609{
     610        PurpleConversation *pc = gc->data;
     611        char *str = g_strdup_printf( "kick %s %s", who, message );
     612        purple_conversation_do_command( pc, str, NULL, NULL );
     613        g_free( str );
    606614}
    607615
     
    13151323        funcs.chat_with = purple_chat_with;
    13161324        funcs.chat_invite = purple_chat_invite;
     1325        funcs.chat_kick = purple_chat_kick;
    13171326        funcs.chat_leave = purple_chat_leave;
    13181327        funcs.chat_join = purple_chat_join;
Note: See TracChangeset for help on using the changeset viewer.