~lanowen/adchppgui/plus

« back to all changes in this revision

Viewing changes to pyadch/Commands.py

  • Committer: Sulan
  • Date: 2010-03-12 11:49:42 UTC
  • Revision ID: sulan80@hotmail.com-20100312114942-3a9qjd89uagusqzr
been inactive for 3 weeks, had unsaved changes...

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
                                        for name in map(Util.toUnicode, self.main.ProfileManager.profiles.keys()): ret+= name+' '
161
161
                                elif cmd == 'myip':
162
162
                                        #+myip
163
 
                                        ret = C_("\n\tIP: {ip}\n\tDNS: {dns}", ip=entity.asClient().getIp(), dns=socket.gethostbyaddr(ip)[0])   
 
163
                                        _ip=entity.asClient().getIp()
 
164
                                        ret = C_("\n\tIP: {ip}\n\tDNS: {dns}", ip=_ip, dns=socket.gethostbyaddr(_ip)[0])        
164
165
                                elif cmd == 'status':
165
166
                                        #+status
166
167
                                        ret =self.main.StatsManager.getStatus()