{"issue":{"title":"Add a /flag <country name> for your country :)","user":{"login":"PureKrome","id":899878,"url":"https://api.github.com/users/PureKrome","avatar_url":"https://secure.gravatar.com/avatar/566e902e083f0bc679019be97a39344e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"566e902e083f0bc679019be97a39344e"},"created_at":"2011-11-28T11:33:06Z","milestone":null,"labels":[{"name":"feature","url":"https://api.github.com/repos/davidfowl/JabbR/labels/feature","color":"0b02e1"}],"state":"open","updated_at":"2011-12-24T11:42:35Z","id":2366417,"html_url":"https://github.com/davidfowl/JabbR/issues/92","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"body":"Yo.\r\n\r\nmaybe have a tiny flag BEFORE the gravatar, on the left hand side.\r\n\r\nalso, autocomplete would be nice, for the country list ?\r\n\r\nflags would be a single sprite .. and using css magical-unicorn-pewpew .. can display the correct one.\r\n\r\nKThxBai !\r\n\r\n/me hugs.","number":92,"url":"https://api.github.com/repos/davidfowl/JabbR/issues/92","comments":2,"assignee":null},"comment":{"user":{"login":"PureKrome","id":899878,"url":"https://api.github.com/users/PureKrome","avatar_url":"https://secure.gravatar.com/avatar/566e902e083f0bc679019be97a39344e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"566e902e083f0bc679019be97a39344e"},"created_at":"2011-12-24T11:42:35Z","updated_at":"2011-12-24T11:42:35Z","id":3267481,"body":"Hi David - sure :) Assign this bad boy to me.\r\n\r\nWhat i was thinking was ..\r\n\r\n/flag <[ISO 3166-1 alpha2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)>\r\n/flag <no iso> removes any existing flag, if one was set.\r\n\r\nISO blah blah blah 2 == 2 char codes. US (for USA), AU (Australia), FR (France), etc...\r\n\r\nFor the ChatUser I was thinking of making this an ENUM (but that would a bit painful to make, the first time) or just a string. The DB will be an tinyint (i think they are under 255) or a smallint .. or char(2) if a string.\r\n\r\nFor the graphics, a [single image which will contain all the flags](http://flag-sprites.com/).  <-- ha! awesome .. already exists.\r\n\r\n![](http://flag-sprites.com/gen/flags.png?set=famfamfam&countries=ad,ae,af,ag,ai,al,am,an,ao,ar,as,at,au,aw,az,ba,bb,bd,be,bf,bg,bh,bi,bj,bm,bn,bo,br,bs,bt,bv,bw,by,bz,ca,catalonia,cd,cf,cg,ch,ci,ck,cl,cm,cn,co,cr,cu,cv,cy,cz,de,dj,dk,dm,do,dz,ec,ee,eg,eh,england,er,es,et,eu,fi,fj,fk,fm,fo,fr,ga,gb,gd,ge,gf,gg,gh,gi,gl,gm,gn,gp,gq,gr,gs,gt,gu,gw,gy,hk,hm,hn,hr,ht,hu,id,ie,il,im,in,io,iq,ir,is,it,je,jm,jo,jp,ke,kg,kh,ki,km,kn,kp,kr,kw,ky,kz,la,lb,lc,li,lk,lr,ls,lt,lu,lv,ly,ma,mc,md,me,mg,mh,mk,ml,mm,mn,mo,mp,mq,mr,ms,mt,mu,mv,mw,mx,my,mz,na,nc,ne,nf,ng,ni,nl,no,np,nr,nu,nz,om,pa,pe,pf,pg,ph,pk,pl,pm,pn,pr,ps,pt,pw,py,qa,re,ro,rs,ru,rw,sa,sb,sc,scotland,sd,se,sg,sh,si,sk,sl,sm,sn,so,sr,ss,st,sv,sy,sz,tc,td,tf,tg,th,tj,tk,tl,tm,tn,to,tr,tt,tv,tw,tz,ua,ug,um,us,uy,uz,va,vc,ve,vg,vi,vn,vu,wales,wf,ws,ye,yt,za,zm,zw)\r\n\r\nLastly, I suppose I was going to reference the gravatar / afk / note code to render the correct flag, if a flag has been set.\r\n\r\nWith Christmas here (in 1hr, 19 min...) i'll be afk for a few days as i'm wifed and kid'ed :~( but after that I can get straight onto it :)","url":"https://api.github.com/repos/davidfowl/JabbR/issues/comments/3267481"},"action":"created"}