Hello I am here to report a inaccuracy with the move Sleep Talk on Pokemon Showdown. Today I was playing a Gen 3 Random battle and I had a Magcargo with Rest, Sleep Talk, Fire Blast and HP Grass. I had run out of PP with Fire Blast, but continued to use Rest and Sleep Talk, because I knew Sleep Talk doesn't draw upon the the move's PP when randomly selected. My Magcargo was asleep and clicks Sleep Talk, the opponent switches in Metagross, and Sleep Talk selects Fire Blast but then a message reads "Fire Blast unavailable due to insufficient PP". Needless to say I was disappointed and immediately looked into Sleep Talk on bulbapedia to confirm its mechanics. I forgot to upload the replay before the page went offline, but I downloaded the battle and it can be seen here: content://com.android.providers.downloads.documents/document/69
BUG STATUS: NOT A BUG, While I can't say for certain without the replay, based on your description of what happened I will say that this is not a bug. In Gen 3 only, Sleep Talk can call moves with 0 pp, but will fail to execute them. Even Bulbapedia's page for Sleep Talk mentions this for Gen 3 (Karthik)