Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ts3plugin_onNewChannelEvent(uint64 serverConnectionHandlerID, uint64 channelID, uint64 channelParentID) {
- char *buffer = malloc(300);
- if(serverConnectionHandlerID != NULL) {
- snprintf(buffer, 100, "serverConnectionHandlerID=%d", serverConnectionHandlerID);
- }
- if(channelID != NULL) {
- snprintf(buffer, 100, "channelID=%d", channelID);
- }
- if(channelParentID != NULL) {
- snprintf(buffer, 100, "channelParentID=%d\n", channelParentID);
- }
- write(client_sock ,buffer, strlen(buffer));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement