Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.49 KB | None | 0 0
  1. void ts3plugin_onNewChannelEvent(uint64 serverConnectionHandlerID, uint64 channelID, uint64 channelParentID) {
  2.     char *buffer = malloc(300);
  3.     if(serverConnectionHandlerID != NULL) {
  4.         snprintf(buffer, 100, "serverConnectionHandlerID=%d", serverConnectionHandlerID);
  5.     }
  6.     if(channelID != NULL) {
  7.         snprintf(buffer, 100, "channelID=%d", channelID);
  8.     }
  9.     if(channelParentID != NULL) {
  10.         snprintf(buffer, 100, "channelParentID=%d\n", channelParentID);
  11.     }
  12.     write(client_sock ,buffer, strlen(buffer));
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement