Community Forums Today's Posts     Member List     Archive    
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2006
    Location
    Chile
    Posts
    19

    Thumbs up how to remove an user's avatar?

    I found some users in my server using sexual oriented or offensive avatars but I couldnt find a way to remove the avatar from those users without degrading them to another user group or removing the avatar permissions form their group.

    Is there any way to remove the avatar on user basis?

    Thanks.

  2. #2
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    7
    I could not find any possibility...

    But I think, if somebody is using an sexual avatar, he should not have an higher server client rank then guest.

    And the guest rank cant set an avatar in die first adjustment.

    so, don´t give people like this higher ranks.

  3. #3
    Join Date
    Mar 2006
    Location
    Chile
    Posts
    19
    Quote Originally Posted by Biglebowski View Post
    I could not find any possibility...

    But I think, if somebody is using an sexual avatar, he should not have an higher server client rank then guest.

    And the guest rank cant set an avatar in die first adjustment.

    so, don´t give people like this higher ranks.
    Well, ppl some times just dont know the limit and degrading them is a solution for the avatar issue, but for my administration becomes a problem since some of them are channel admins .. anyway, removing the avatar for a single user is still a good feature that could be packed into ts.

  4. #4
    Join Date
    Dec 2009
    Location
    Europe
    Posts
    184
    You can do it with root access to your server. Take a look into the files/virtualserver_X/internal directory. The avatars are stored there. However, you have to check them visually as there is no human-readable connection between the file name and the user that uses this file.

  5. #5
    Join Date
    Mar 2006
    Location
    Chile
    Posts
    19
    Quote Originally Posted by Birdie View Post
    You can do it with root access to your server. Take a look into the files/virtualserver_X/internal directory. The avatars are stored there. However, you have to check them visually as there is no human-readable connection between the file name and the user that uses this file.
    Yes, I've notices the "internal" directory under files/virtualserverxxx

    But imagine a 500 slots server... Its kind of difficult to grab the correct one :P

  6. #6
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    2
    Hopefully there will be a feature allowing you to remove avatars...

    Until then, you could use the Query-Interface to determine the filename or (if you are using linux) this:

    (It's really bad code, i know...)
    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    
    int b(char a) {
    	const char* base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
    	int b = 0;
    	/* b=abs(-*base64 + *strchr(base64, a)); */
    	while(b < 64) {
    		if (base64[b] == a) return b;
    		b++;
    	}
    	return 0;
    }
    
    int main(void) {
    	int i,o,p=0;
    	char uniqueID[200];
    	char base16[6];
    	fgets(uniqueID, 200, stdin);
    	while(i=0, p=0, o < strlen(uniqueID)-4) {
    		i=b(uniqueID[o+3]) | (b(uniqueID[o+2])<<6)
    			 | (b(uniqueID[o+1])<<12) | (b(uniqueID[o])<<18);
    		if(uniqueID[o+3] == '=') { 
    			if(uniqueID[o+2] == '=') { 
    				base16[3] = 0;
    				p++; 
    				i>>=4; 
    			}
    			if ((i & 255) == 0) {
    				base16[4] = 0;
    				p++;
    				i>>=4;
    			}
    			base16[5] = 0;
    			p++; 
    			i>>=4; 
    		}
    		while(p < 6) {
    			base16[5-p] = ('a'+(i&15));
    			i >>= 4;
    			p++;
    		}
    		//fputs(base16, stdout);
    		p=0;
    		while (p<6) { putchar(base16[p]); p++; }
    		o+=4;
    	}
    	putchar('\n');
    }
    compile once with
    Code:
    gcc -o avatarname
    You can use this line to delete the file:
    Code:
    rm -i *$(./avatarname)
    Paste the uniqueID of a user afterwards.

    This application converts the base64 representation of the uniqueid into a custom base16 one.
    Last edited by ~Obbi/; 02-01-2010 at 06:55.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Resolved] Failed to remove existing local avatar copy
    By FDCP_NEO (NL) in forum Client Support
    Replies: 17
    Last Post: 23-03-2011, 09:06
  2. MySQL startup error: SQL files not found
    By winetown in forum [TeamSpeak 2] Server Support
    Replies: 6
    Last Post: 05-06-2008, 07:43
  3. Mail wieder: TS2-Server unter Debian 3.1 Sarge3 startet (außer als root) nicht.
    By shibboleth in forum [TeamSpeak 2] Server Support
    Replies: 7
    Last Post: 06-10-2006, 12:27
  4. Removing Voice rights from Anonymous users
    By macarthur in forum [TeamSpeak 2] Server Support
    Replies: 8
    Last Post: 16-03-2005, 05:31
  5. Kann Server nur als Root starten, will ich aber nicht
    By NiBurhe in forum [TeamSpeak 2] Server Support
    Replies: 9
    Last Post: 14-07-2004, 08:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •